org.gudy.bouncycastle.asn1.x509
Class NoticeReference

java.lang.Object
  extended by org.gudy.bouncycastle.asn1.ASN1Encodable
      extended by org.gudy.bouncycastle.asn1.x509.NoticeReference
All Implemented Interfaces:
DEREncodable

public class NoticeReference
extends ASN1Encodable

NoticeReference class, used in CertificatePolicies X509 V3 extensions (in policy qualifiers).

  NoticeReference ::= SEQUENCE {
      organization     DisplayText,
      noticeNumbers    SEQUENCE OF INTEGER }

 

See Also:
PolicyQualifierInfo, PolicyInformation

Field Summary
 
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
NoticeReference(ASN1Sequence as)
          Creates a new NoticeReference instance.
NoticeReference(int displayTextType, String orgName, ASN1Sequence numbers)
          Creates a new NoticeReference instance.
NoticeReference(String orgName, ASN1Sequence numbers)
          Creates a new NoticeReference instance.
NoticeReference(String orgName, Vector numbers)
          Creates a new NoticeReference instance.
 
Method Summary
static NoticeReference getInstance(Object as)
           
 ASN1Sequence getNoticeNumbers()
           
 DisplayText getOrganization()
           
 DERObject toASN1Object()
          Describe toASN1Object method here.
 
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoticeReference

public NoticeReference(String orgName,
                       Vector numbers)
Creates a new NoticeReference instance.

Parameters:
orgName - a String value
numbers - a Vector value

NoticeReference

public NoticeReference(String orgName,
                       ASN1Sequence numbers)
Creates a new NoticeReference instance.

Parameters:
orgName - a String value
numbers - an ASN1EncodableVector value

NoticeReference

public NoticeReference(int displayTextType,
                       String orgName,
                       ASN1Sequence numbers)
Creates a new NoticeReference instance.

Parameters:
displayTextType - an int value
orgName - a String value
numbers - an ASN1EncodableVector value

NoticeReference

public NoticeReference(ASN1Sequence as)
Creates a new NoticeReference instance.

Useful for reconstructing a NoticeReference instance from its encodable/encoded form.

Parameters:
as - an ASN1Sequence value obtained from either calling @{link toASN1Object()} for a NoticeReference instance or from parsing it from a DER-encoded stream.
Method Detail

getInstance

public static NoticeReference getInstance(Object as)

getOrganization

public DisplayText getOrganization()

getNoticeNumbers

public ASN1Sequence getNoticeNumbers()

toASN1Object

public DERObject toASN1Object()
Describe toASN1Object method here.

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a DERObject value