public class RecipientEncryptedKey extends ASN1Encodable
BER, DER
Constructor and Description |
---|
RecipientEncryptedKey(KeyAgreeRecipientIdentifier id,
ASN1OctetString encryptedKey) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, ASN1OctetString encryptedKey)
public static RecipientEncryptedKey getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static RecipientEncryptedKey getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public KeyAgreeRecipientIdentifier getIdentifier()
public ASN1OctetString getEncryptedKey()
public DERObject toASN1Object()
RecipientEncryptedKey ::= SEQUENCE { rid KeyAgreeRecipientIdentifier, encryptedKey EncryptedKey }
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.