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

public Class KeyAgreeRecipientIdentifier

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERTaggedObject

RFC 5652: Content encryption key delivery mechanisms.

KeyAgreeRecipientIdentifier ::= CHOICE {
    issuerAndSerialNumber IssuerAndSerialNumber,
    rKeyId [0] IMPLICIT RecipientKeyIdentifier }

Field Summary

Modifier and TypeField and Description
private IssuerAndSerialNumber
private RecipientKeyIdentifier

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public static KeyAgreeRecipientIdentifier
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
obj
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
explicit
)

Return an KeyAgreeRecipientIdentifier object from a tagged object.

public static KeyAgreeRecipientIdentifier
getInstance(Object
the object we want converted.
obj
)

Return an KeyAgreeRecipientIdentifier object from the given object.

public IssuerAndSerialNumber
public RecipientKeyIdentifier
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

issuerSerialback to summary
private IssuerAndSerialNumber issuerSerial
rKeyIDback to summary
private RecipientKeyIdentifier rKeyID

Constructor Detail

KeyAgreeRecipientIdentifierback to summary
public KeyAgreeRecipientIdentifier(IssuerAndSerialNumber issuerSerial)
KeyAgreeRecipientIdentifierback to summary
public KeyAgreeRecipientIdentifier(RecipientKeyIdentifier rKeyID)

Method Detail

getInstanceback to summary
public static KeyAgreeRecipientIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)

Return an KeyAgreeRecipientIdentifier object from a tagged object.

Parameters
obj:ASN1TaggedObject

the tagged object holding the object we want.

explicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static KeyAgreeRecipientIdentifier getInstance(Object obj)

Return an KeyAgreeRecipientIdentifier object from the given object.

Accepted inputs:

Note

no byte[] input!

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getIssuerAndSerialNumberback to summary
public IssuerAndSerialNumber getIssuerAndSerialNumber()
getRKeyIDback to summary
public RecipientKeyIdentifier getRKeyID()
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.