Class SubjectDirectoryAttributes

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class SubjectDirectoryAttributes
    extends ASN1Object
    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.
    • Constructor Detail

      • SubjectDirectoryAttributes

        public SubjectDirectoryAttributes​(java.util.Vector attributes)
        Constructor from a vector of attributes. The vector consists of attributes of type Attribute
        Parameters:
        attributes - The attributes.
    • Method Detail

      • toASN1Primitive

        public ASN1Primitive 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
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a ASN1Primitive
      • getAttributes

        public java.util.Vector getAttributes()
        Returns:
        Returns the attributes.