Package org.bouncycastle.asn1.cms
Class KeyTransRecipientInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.KeyTransRecipientInfo
- All Implemented Interfaces:
ASN1Encodable,Encodable
RFC 5652:
Content encryption key delivery mechanisms.
KeyTransRecipientInfo ::= SEQUENCE {
version CMSVersion, -- always set to 0 or 2
rid RecipientIdentifier,
keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
encryptedKey EncryptedKey
}
-
Constructor Summary
ConstructorsConstructorDescriptionKeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyTransRecipientInfogetInstance(Object obj) Return a KeyTransRecipientInfo object from the given object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
KeyTransRecipientInfo
public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
-
-
Method Details
-
getInstance
Return a KeyTransRecipientInfo object from the given object.Accepted inputs:
- null → null
-
KeyTransRecipientInfoobject -
ASN1Sequenceinput formats with KeyTransRecipientInfo structure inside
- Parameters:
obj- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getVersion
-
getRecipientIdentifier
-
getKeyEncryptionAlgorithm
-
getEncryptedKey
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-