Package org.gudy.bouncycastle.asn1.x509
Class UserNotice
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.UserNotice
- All Implemented Interfaces:
DEREncodable
UserNotice
class, used in
CertificatePolicies
X509 extensions (in policy
qualifiers).
UserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL}
- See Also:
-
Field Summary
FieldsFields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newUserNotice
instance.UserNotice
(NoticeReference noticeRef, String str) Creates a newUserNotice
instance.UserNotice
(NoticeReference noticeRef, DisplayText explicitText) Creates a newUserNotice
instance. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
noticeRef
-
explicitText
-
-
Constructor Details
-
UserNotice
Creates a newUserNotice
instance.- Parameters:
noticeRef
- aNoticeReference
valueexplicitText
- aDisplayText
value
-
UserNotice
Creates a newUserNotice
instance.- Parameters:
noticeRef
- aNoticeReference
valuestr
- the explicitText field as a String.
-
UserNotice
Creates a newUserNotice
instance.Useful from reconstructing a
UserNotice
instance from its encodable/encoded form.- Parameters:
as
- anASN1Sequence
value obtained from either calling @{link toASN1Object()} for aUserNotice
instance or from parsing it from a DER-encoded stream.
-
-
Method Details
-
getNoticeRef
-
getExplicitText
-
toASN1Object
- Specified by:
toASN1Object
in classASN1Encodable
-