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
public class UserNotice extends ASN1Encodable
UserNotice
class, used inCertificatePolicies
X509 extensions (in policy qualifiers).UserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL}
- See Also:
PolicyQualifierId
,PolicyInformation
-
-
Field Summary
Fields Modifier and Type Field Description private DisplayText
explicitText
private NoticeReference
noticeRef
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
-
Constructor Summary
Constructors Constructor Description UserNotice(ASN1Sequence as)
Creates a newUserNotice
instance.UserNotice(NoticeReference noticeRef, java.lang.String str)
Creates a newUserNotice
instance.UserNotice(NoticeReference noticeRef, DisplayText explicitText)
Creates a newUserNotice
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayText
getExplicitText()
NoticeReference
getNoticeRef()
DERObject
toASN1Object()
-
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
-
-
-
Field Detail
-
noticeRef
private NoticeReference noticeRef
-
explicitText
private DisplayText explicitText
-
-
Constructor Detail
-
UserNotice
public UserNotice(NoticeReference noticeRef, DisplayText explicitText)
Creates a newUserNotice
instance.- Parameters:
noticeRef
- aNoticeReference
valueexplicitText
- aDisplayText
value
-
UserNotice
public UserNotice(NoticeReference noticeRef, java.lang.String str)
Creates a newUserNotice
instance.- Parameters:
noticeRef
- aNoticeReference
valuestr
- the explicitText field as a String.
-
UserNotice
public UserNotice(ASN1Sequence as)
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 Detail
-
getNoticeRef
public NoticeReference getNoticeRef()
-
getExplicitText
public DisplayText getExplicitText()
-
toASN1Object
public DERObject toASN1Object()
- Specified by:
toASN1Object
in classASN1Encodable
-
-