org.bouncycastle.asn1.cms

Class OtherKeyAttribute

Implemented Interfaces:
DEREncodable

public class OtherKeyAttribute
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

OtherKeyAttribute(ASN1Sequence seq)
OtherKeyAttribute(DERObjectIdentifier keyAttrId, DEREncodable keyAttr)

Method Summary

static OtherKeyAttribute
getInstance(Object o)
return an OtherKeyAttribute object from the given object.
DEREncodable
getKeyAttr()
DERObjectIdentifier
getKeyAttrId()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

OtherKeyAttribute

public OtherKeyAttribute(ASN1Sequence seq)

OtherKeyAttribute

public OtherKeyAttribute(DERObjectIdentifier keyAttrId,
                         DEREncodable keyAttr)

Method Details

getInstance

public static OtherKeyAttribute getInstance(Object o)
return an OtherKeyAttribute object from the given object.
Parameters:
o - the object we want 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
 }
 
Overrides:
toASN1Object in interface ASN1Encodable