org.bouncycastle.asn1.pkcs

Class Attribute

public class Attribute extends ASN1Encodable

Constructor Summary
Attribute(ASN1Sequence seq)
Attribute(DERObjectIdentifier attrType, ASN1Set attrValues)
Method Summary
DERObjectIdentifiergetAttrType()
ASN1SetgetAttrValues()
static AttributegetInstance(Object o)
return an Attribute object from the given object.
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

Attribute

public Attribute(ASN1Sequence seq)

Attribute

public Attribute(DERObjectIdentifier attrType, ASN1Set attrValues)

Method Detail

getAttrType

public DERObjectIdentifier getAttrType()

getAttrValues

public ASN1Set getAttrValues()

getInstance

public static Attribute getInstance(Object o)
return an Attribute object from the given object.

Parameters: o the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 Attribute ::= SEQUENCE {
     attrType OBJECT IDENTIFIER,
     attrValues SET OF AttributeValue
 }