Bouncy Castle Cryptography 1.48

org.bouncycastle.x509
Class X509Attribute

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.x509.X509Attribute
All Implemented Interfaces:
ASN1Encodable

public class X509Attribute
extends ASN1Object

Class for carrying the values in an X.509 Attribute.


Constructor Summary
X509Attribute(java.lang.String oid, ASN1Encodable value)
          Create an X.509 Attribute with the type given by the passed in oid and the value represented by an ASN.1 Set containing value.
X509Attribute(java.lang.String oid, ASN1EncodableVector value)
          Create an X.59 Attribute with the type given by the passed in oid and the value represented by an ASN.1 Set containing the objects in value.
 
Method Summary
 java.lang.String getOID()
           
 ASN1Encodable[] getValues()
           
 ASN1Primitive toASN1Primitive()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509Attribute

public X509Attribute(java.lang.String oid,
                     ASN1Encodable value)
Create an X.509 Attribute with the type given by the passed in oid and the value represented by an ASN.1 Set containing value.

Parameters:
oid - type of the attribute
value - value object to go into the atribute's value set.

X509Attribute

public X509Attribute(java.lang.String oid,
                     ASN1EncodableVector value)
Create an X.59 Attribute with the type given by the passed in oid and the value represented by an ASN.1 Set containing the objects in value.

Parameters:
oid - type of the attribute
value - vector of values to go in the attribute's value set.
Method Detail

getOID

public java.lang.String getOID()

getValues

public ASN1Encodable[] getValues()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

Bouncy Castle Cryptography 1.48