Top Description Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class UserNotice

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERSequence

UserNotice class, used in CertificatePolicies X509 extensions (in policy qualifiers).
UserNotice ::= SEQUENCE {
     noticeRef        NoticeReference OPTIONAL,
     explicitText     DisplayText OPTIONAL}

See Also
PolicyQualifierId, PolicyInformation

Field Summary

Modifier and TypeField and Description
private final DisplayText
private final NoticeReference

Constructor Summary

AccessConstructor and Description
public
UserNotice(NoticeReference
a NoticeReference value
noticeRef
,
DisplayText
a DisplayText value
explicitText
)

Creates a new UserNotice instance.

public
UserNotice(NoticeReference
a NoticeReference value
noticeRef
,
String
the explicitText field as a String.
str
)

Creates a new UserNotice instance.

private
UserNotice(ASN1Sequence
an ASN1Sequence value obtained from either calling @{link toASN1Primitive()} for a UserNotice instance or from parsing it from a DER-encoded stream.
as
)

Creates a new UserNotice instance.

Method Summary

Modifier and TypeMethod and Description
public DisplayText
public static UserNotice
public NoticeReference
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

explicitTextback to summary
private final DisplayText explicitText
noticeRefback to summary
private final NoticeReference noticeRef

Constructor Detail

UserNoticeback to summary
public UserNotice(NoticeReference noticeRef, DisplayText explicitText)

Creates a new UserNotice instance.

Parameters
noticeRef:NoticeReference

a NoticeReference value

explicitText:DisplayText

a DisplayText value

UserNoticeback to summary
public UserNotice(NoticeReference noticeRef, String str)

Creates a new UserNotice instance.

Parameters
noticeRef:NoticeReference

a NoticeReference value

str:String

the explicitText field as a String.

UserNoticeback to summary
private UserNotice(ASN1Sequence as)

Creates a new UserNotice instance.

Useful from reconstructing a UserNotice instance from its encodable/encoded form.

Parameters
as:ASN1Sequence

an ASN1Sequence value obtained from either calling @{link toASN1Primitive()} for a UserNotice instance or from parsing it from a DER-encoded stream.

Method Detail

getExplicitTextback to summary
public DisplayText getExplicitText()
getInstanceback to summary
public static UserNotice getInstance(Object obj)
getNoticeRefback to summary
public NoticeReference getNoticeRef()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.