Top Description Fields Constructors Methods
org.bouncycastle.x509

public Class X509Attribute

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Set, .DERSet, org.bouncycastle.asn1.x509.Attribute

Deprecated

see X509CertificateHolder class in the PKIX package.

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

Field Summary

Modifier and TypeField and Description
pack-priv Attribute

Constructor Summary

AccessConstructor and Description
pack-priv
X509Attribute(ASN1Encodable
an object representing an attribute.
at
)

public
X509Attribute(String
type of the attribute
oid
,
ASN1Encodable
value object to go into the atribute's value set.
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.

public
X509Attribute(String
type of the attribute
oid
,
ASN1EncodableVector
vector of values to go in the attribute's value set.
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

Modifier and TypeMethod and Description
public String
public ASN1Encodable[]
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

attrback to summary
pack-priv Attribute attr

Constructor Detail

X509Attributeback to summary
pack-priv X509Attribute(ASN1Encodable at)
Parameters
at:ASN1Encodable

an object representing an attribute.

X509Attributeback to summary
public X509Attribute(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:String

type of the attribute

value:ASN1Encodable

value object to go into the atribute's value set.

X509Attributeback to summary
public X509Attribute(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:String

type of the attribute

value:ASN1EncodableVector

vector of values to go in the attribute's value set.

Method Detail

getOIDback to summary
public String getOID()
getValuesback to summary
public ASN1Encodable[] getValues()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.