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

public Class SubjectDirectoryAttributes

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, .Vector, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERSequence

This extension may contain further X.500 attributes of the subject. See also RFC 3039.
    SubjectDirectoryAttributes ::= Attributes
    Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
    Attribute ::= SEQUENCE 
    {
      type AttributeType 
      values SET OF AttributeValue 
    }

    AttributeType ::= OBJECT IDENTIFIER
    AttributeValue ::= ANY DEFINED BY AttributeType
See Also
for AttributeType ObjectIdentifiers.

Field Summary

Modifier and TypeField and Description
private Vector<E>

Constructor Summary

AccessConstructor and Description
private
SubjectDirectoryAttributes(ASN1Sequence
The ASN.1 sequence.
seq
)

Constructor from ASN1Sequence.

public
SubjectDirectoryAttributes(Vector<E>
The attributes.
attributes
)

Constructor from a vector of attributes.

Method Summary

Modifier and TypeMethod and Description
public Vector<E>

Returns:

Returns the attributes.
getAttributes
()

public static SubjectDirectoryAttributes
public ASN1Primitive

Returns:

a ASN1Primitive
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

attributesback to summary
private Vector<E> attributes

Constructor Detail

SubjectDirectoryAttributesback to summary
private SubjectDirectoryAttributes(ASN1Sequence seq)

Constructor from ASN1Sequence. The sequence is of type SubjectDirectoryAttributes:

     SubjectDirectoryAttributes ::= Attributes
     Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
     Attribute ::= SEQUENCE 
     {
       type AttributeType 
       values SET OF AttributeValue 
     }

     AttributeType ::= OBJECT IDENTIFIER
     AttributeValue ::= ANY DEFINED BY AttributeType
Parameters
seq:ASN1Sequence

The ASN.1 sequence.

SubjectDirectoryAttributesback to summary
public SubjectDirectoryAttributes(Vector<E> attributes)

Constructor from a vector of attributes. The vector consists of attributes of type Attribute

Parameters
attributes:Vector<E>

The attributes.

Method Detail

getAttributesback to summary
public Vector<E> getAttributes()
Returns:Vector<E>

Returns the attributes.

getInstanceback to summary
public static SubjectDirectoryAttributes getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream. Returns:

     SubjectDirectoryAttributes ::= Attributes
     Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
     Attribute ::= SEQUENCE 
     {
       type AttributeType 
       values SET OF AttributeValue 
     }

     AttributeType ::= OBJECT IDENTIFIER
     AttributeValue ::= ANY DEFINED BY AttributeType
Returns:ASN1Primitive

a ASN1Primitive