public class

SubjectDirectoryAttributes

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.SubjectDirectoryAttributes

Class Overview

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
 

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
SubjectDirectoryAttributes(ASN1Sequence seq)
Constructor from ASN1Sequence.
SubjectDirectoryAttributes(Vector attributes)
Constructor from a vector of attributes.
Public Methods
Vector getAttributes()
static SubjectDirectoryAttributes getInstance(Object obj)
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public 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 The ASN.1 sequence.

public SubjectDirectoryAttributes (Vector attributes)

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

Parameters
attributes The attributes.

Public Methods

public Vector getAttributes ()

Returns
  • Returns the attributes.

public static SubjectDirectoryAttributes getInstance (Object obj)

public DERObject toASN1Object ()

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
  • a DERObject