Package org.gudy.bouncycastle.x509
Class X509Attribute
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Encodable
-
- org.gudy.bouncycastle.x509.X509Attribute
-
- All Implemented Interfaces:
DEREncodable
public class X509Attribute extends ASN1Encodable
Class for carrying the values in an X.509 Attribute.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Attribute
attr
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
-
Constructor Summary
Constructors Constructor Description 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.X509Attribute(ASN1Encodable at)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOID()
ASN1Encodable[]
getValues()
DERObject
toASN1Object()
-
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
-
-
-
Field Detail
-
attr
Attribute attr
-
-
Constructor Detail
-
X509Attribute
X509Attribute(ASN1Encodable at)
- Parameters:
at
- an object representing an attribute.
-
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 attributevalue
- 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 attributevalue
- vector of values to go in the attribute's value set.
-
-
Method Detail
-
getOID
public java.lang.String getOID()
-
getValues
public ASN1Encodable[] getValues()
-
toASN1Object
public DERObject toASN1Object()
- Specified by:
toASN1Object
in classASN1Encodable
-
-