public class KeyTransRecipientInfo
extends org.bouncycastle.asn1.ASN1Object
KeyTransRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 0 or 2 rid RecipientIdentifier, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, encryptedKey EncryptedKey }
Constructor and Description |
---|
KeyTransRecipientInfo(RecipientIdentifier rid,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.ASN1OctetString encryptedKey) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.ASN1OctetString |
getEncryptedKey() |
static KeyTransRecipientInfo |
getInstance(java.lang.Object obj)
Return a KeyTransRecipientInfo object from the given object.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getKeyEncryptionAlgorithm() |
RecipientIdentifier |
getRecipientIdentifier() |
org.bouncycastle.asn1.ASN1Integer |
getVersion() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
public KeyTransRecipientInfo(RecipientIdentifier rid, org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedKey)
public static KeyTransRecipientInfo getInstance(java.lang.Object obj)
Accepted inputs:
KeyTransRecipientInfo
object
ASN1Sequence
input formats with KeyTransRecipientInfo structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public RecipientIdentifier getRecipientIdentifier()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKeyEncryptionAlgorithm()
public org.bouncycastle.asn1.ASN1OctetString getEncryptedKey()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object