public class

Attribute

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.pkcs.Attribute

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
Attribute(ASN1Sequence seq)
Attribute(DERObjectIdentifier attrType, ASN1Set attrValues)
Public Methods
DERObjectIdentifier getAttrType()
ASN1Set getAttrValues()
static Attribute getInstance(Object o)
return an Attribute object from the given object.
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 Attribute (ASN1Sequence seq)

public Attribute (DERObjectIdentifier attrType, ASN1Set attrValues)

Public Methods

public DERObjectIdentifier getAttrType ()

public ASN1Set getAttrValues ()

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.

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

 Attribute ::= SEQUENCE {
     attrType OBJECT IDENTIFIER,
     attrValues SET OF AttributeValue
 }