Package org.bouncycastle.asn1.cms
Class OtherKeyAttribute
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.OtherKeyAttribute
- All Implemented Interfaces:
ASN1Encodable,Encodable
RFC 5652: OtherKeyAttribute object.
OtherKeyAttribute ::= SEQUENCE {
keyAttrId OBJECT IDENTIFIER,
keyAttr ANY DEFINED BY keyAttrId OPTIONAL
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OtherKeyAttributeReturn an OtherKeyAttribute object from the given object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
OtherKeyAttribute
-
-
Method Details
-
getInstance
Return an OtherKeyAttribute object from the given object.Accepted inputs:
- null → null
-
OtherKeyAttributeobject -
ASN1Sequenceinput formats with OtherKeyAttribute structure inside
- Parameters:
o- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getKeyAttrId
-
getKeyAttr
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-