public class

RecipientEncryptedKey

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.cms.RecipientEncryptedKey

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, ASN1OctetString encryptedKey)
Public Methods
ASN1OctetString getEncryptedKey()
KeyAgreeRecipientIdentifier getIdentifier()
static RecipientEncryptedKey getInstance(ASN1TaggedObject obj, boolean explicit)
return an RecipientEncryptedKey object from a tagged object.
static RecipientEncryptedKey getInstance(Object obj)
return a RecipientEncryptedKey object from the given object.
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public RecipientEncryptedKey (KeyAgreeRecipientIdentifier id, ASN1OctetString encryptedKey)

Public Methods

public ASN1OctetString getEncryptedKey ()

public KeyAgreeRecipientIdentifier getIdentifier ()

public static RecipientEncryptedKey getInstance (ASN1TaggedObject obj, boolean explicit)

return an RecipientEncryptedKey object from a tagged object.

Parameters
obj the tagged object holding the object we want.
explicit true if the object is meant to be explicitly tagged false otherwise.
Throws
IllegalArgumentException if the object held by the tagged object cannot be converted.

public static RecipientEncryptedKey getInstance (Object obj)

return a RecipientEncryptedKey object from the given object.

Parameters
obj the object we want converted.
Throws
IllegalArgumentException if the object cannot be converted.

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

 RecipientEncryptedKey ::= SEQUENCE {
     rid KeyAgreeRecipientIdentifier,
     encryptedKey EncryptedKey
 }