public class KeyTransRecipientInfo extends ASN1Encodable
BER, DER
Constructor and Description |
---|
KeyTransRecipientInfo(ASN1Sequence seq) |
KeyTransRecipientInfo(RecipientIdentifier rid,
AlgorithmIdentifier keyEncryptionAlgorithm,
ASN1OctetString encryptedKey) |
Modifier and Type | Method and Description |
---|---|
ASN1OctetString |
getEncryptedKey() |
static KeyTransRecipientInfo |
getInstance(Object obj)
return a KeyTransRecipientInfo object from the given object.
|
AlgorithmIdentifier |
getKeyEncryptionAlgorithm() |
RecipientIdentifier |
getRecipientIdentifier() |
DERInteger |
getVersion() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
public KeyTransRecipientInfo(ASN1Sequence seq)
public static KeyTransRecipientInfo getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public DERInteger getVersion()
public RecipientIdentifier getRecipientIdentifier()
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
public ASN1OctetString getEncryptedKey()
public DERObject toASN1Object()
KeyTransRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 0 or 2 rid RecipientIdentifier, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, encryptedKey EncryptedKey }
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.