org.bouncycastle.asn1.cms

Class OtherKeyAttribute

public class OtherKeyAttribute extends ASN1Encodable

Constructor Summary
OtherKeyAttribute(ASN1Sequence seq)
OtherKeyAttribute(DERObjectIdentifier keyAttrId, DEREncodable keyAttr)
Method Summary
static OtherKeyAttributegetInstance(Object o)
return an OtherKeyAttribute object from the given object.
DEREncodablegetKeyAttr()
DERObjectIdentifiergetKeyAttrId()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

OtherKeyAttribute

public OtherKeyAttribute(ASN1Sequence seq)

OtherKeyAttribute

public OtherKeyAttribute(DERObjectIdentifier keyAttrId, DEREncodable keyAttr)

Method Detail

getInstance

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

Parameters: o the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getKeyAttr

public DEREncodable getKeyAttr()

getKeyAttrId

public DERObjectIdentifier getKeyAttrId()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 OtherKeyAttribute ::= SEQUENCE {
     keyAttrId OBJECT IDENTIFIER,
     keyAttr ANY DEFINED BY keyAttrId OPTIONAL
 }