Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class OtherKeyAttribute

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .DERSequence

RFC 5652: OtherKeyAttribute object.

OtherKeyAttribute ::= SEQUENCE {
    keyAttrId OBJECT IDENTIFIER,
    keyAttr ANY DEFINED BY keyAttrId OPTIONAL
}

Field Summary

Modifier and TypeField and Description
private ASN1Encodable
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
private
public

Method Summary

Modifier and TypeMethod and Description
public static OtherKeyAttribute
getInstance(Object
the object we want converted.
o
)

Return an OtherKeyAttribute object from the given object.

public ASN1Encodable
public ASN1ObjectIdentifier
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

keyAttrback to summary
private ASN1Encodable keyAttr
keyAttrIdback to summary
private ASN1ObjectIdentifier keyAttrId

Constructor Detail

OtherKeyAttributeback to summary
private OtherKeyAttribute(ASN1Sequence seq)
OtherKeyAttributeback to summary
public OtherKeyAttribute(ASN1ObjectIdentifier keyAttrId, ASN1Encodable keyAttr)

Method Detail

getInstanceback to summary
public static OtherKeyAttribute getInstance(Object o)

Return an OtherKeyAttribute object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKeyAttrback to summary
public ASN1Encodable getKeyAttr()
getKeyAttrIdback to summary
public ASN1ObjectIdentifier getKeyAttrId()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.