Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class KeyTransRecipientInfo

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

RFC 5652: Content encryption key delivery mechanisms.
KeyTransRecipientInfo ::= SEQUENCE {
    version CMSVersion,  -- always set to 0 or 2
    rid RecipientIdentifier,
    keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
    encryptedKey EncryptedKey 
}

Field Summary

Modifier and TypeField and Description
private ASN1OctetString
private AlgorithmIdentifier
private RecipientIdentifier
private ASN1Integer

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
public ASN1OctetString
public static KeyTransRecipientInfo
getInstance(Object
the object we want converted.
obj
)

Return a KeyTransRecipientInfo object from the given object.

public AlgorithmIdentifier
public RecipientIdentifier
public ASN1Integer
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encryptedKeyback to summary
private ASN1OctetString encryptedKey
keyEncryptionAlgorithmback to summary
private AlgorithmIdentifier keyEncryptionAlgorithm
ridback to summary
private RecipientIdentifier rid
versionback to summary
private ASN1Integer version

Constructor Detail

KeyTransRecipientInfoback to summary
public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
KeyTransRecipientInfoback to summary
private KeyTransRecipientInfo(ASN1Sequence seq)

Method Detail

getEncryptedKeyback to summary
public ASN1OctetString getEncryptedKey()
getInstanceback to summary
public static KeyTransRecipientInfo getInstance(Object obj)

Return a KeyTransRecipientInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKeyEncryptionAlgorithmback to summary
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
getRecipientIdentifierback to summary
public RecipientIdentifier getRecipientIdentifier()
getVersionback to summary
public ASN1Integer getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.