be.cardon.asn1.x509.extensions
Class SubjectDirectoryAttributes

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by be.cardon.asn1.x509.extensions.SubjectDirectoryAttributes
All Implemented Interfaces:
org.bouncycastle.asn1.DEREncodable

public class SubjectDirectoryAttributes
extends org.bouncycastle.asn1.ASN1Encodable

Extension SubjectDirectoryAttributes.

Documentation from RFC 3280:

The subject directory attributes extension is used to convey identification attributes (e.g., nationality) of the subject. The extension is defined as a sequence of one or more attributes. This extension MUST be non-critical.

ASN.1 definitions:

   id-ce-subjectDirectoryAttributes OBJECT IDENTIFIER ::=  { id-ce 9 }

   SubjectDirectoryAttributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
   

See org.bouncycastle.asn1.x509.X509Name for AttributeType ObjectIdentifiers.


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
SubjectDirectoryAttributes(org.bouncycastle.asn1.ASN1Sequence seq)
          Creates a new instance from ASN1Sequence object.
SubjectDirectoryAttributes(java.util.Vector<Attribute> attributes)
          Creates a new instance from a vector of Attribute.
 
Method Summary
 java.util.Vector<Attribute> getAttributes()
          Returns the attributes.
static SubjectDirectoryAttributes getInstance(java.lang.Object obj)
          Returns a new instance from ASN1Sequence, or SubjectDirectoryAttributes object.
 org.bouncycastle.asn1.DERObject toASN1Object()
           
 
Methods inherited from class org.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

SubjectDirectoryAttributes

public SubjectDirectoryAttributes(org.bouncycastle.asn1.ASN1Sequence seq)
Creates a new instance from ASN1Sequence object.


SubjectDirectoryAttributes

public SubjectDirectoryAttributes(java.util.Vector<Attribute> attributes)
Creates a new instance from a vector of Attribute. Make a copy of the vector.

Method Detail

getInstance

public static SubjectDirectoryAttributes getInstance(java.lang.Object obj)
Returns a new instance from ASN1Sequence, or SubjectDirectoryAttributes object.


toASN1Object

public org.bouncycastle.asn1.DERObject toASN1Object()
Specified by:
toASN1Object in class org.bouncycastle.asn1.ASN1Encodable

getAttributes

public java.util.Vector<Attribute> getAttributes()
Returns the attributes.