public class RecipientEncryptedKey extends ASN1Encodable
| Modifier and Type | Field and Description |
|---|---|
private ASN1OctetString |
encryptedKey |
private KeyAgreeRecipientIdentifier |
identifier |
BER, DER| Modifier | Constructor and Description |
|---|---|
private |
RecipientEncryptedKey(ASN1Sequence seq) |
|
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(java.lang.Object obj)
return a RecipientEncryptedKey object from the given object.
|
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodeprivate KeyAgreeRecipientIdentifier identifier
private ASN1OctetString encryptedKey
private RecipientEncryptedKey(ASN1Sequence seq)
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.java.lang.IllegalArgumentException - if the object held by the
tagged object cannot be converted.public static RecipientEncryptedKey getInstance(java.lang.Object obj)
obj - the object we want converted.java.lang.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 ASN1EncodableCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.