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

public Class KEKRecipientInfo

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.

KEKRecipientInfo ::= SEQUENCE {
    version CMSVersion,  -- always set to 4
    kekid KEKIdentifier,
    keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
    encryptedKey EncryptedKey 
}

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
KEKRecipientInfo(KEKIdentifier kekid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)

public

Method Summary

Modifier and TypeMethod and Description
public ASN1OctetString
public static KEKRecipientInfo
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
obj
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
explicit
)

Return a KEKRecipientInfo object from a tagged object.

public static KEKRecipientInfo
getInstance(Object
the object we want converted.
obj
)

Return a KEKRecipientInfo object from the given object.

public KEKIdentifier
public AlgorithmIdentifier
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
kekidback to summary
private KEKIdentifier kekid
keyEncryptionAlgorithmback to summary
private AlgorithmIdentifier keyEncryptionAlgorithm
versionback to summary
private ASN1Integer version

Constructor Detail

KEKRecipientInfoback to summary
public KEKRecipientInfo(KEKIdentifier kekid, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
KEKRecipientInfoback to summary
public KEKRecipientInfo(ASN1Sequence seq)

Method Detail

getEncryptedKeyback to summary
public ASN1OctetString getEncryptedKey()
getInstanceback to summary
public static KEKRecipientInfo getInstance(ASN1TaggedObject obj, boolean explicit)

Return a KEKRecipientInfo object from a tagged object.

Parameters
obj:ASN1TaggedObject

the tagged object holding the object we want.

explicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static KEKRecipientInfo getInstance(Object obj)

Return a KEKRecipientInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKekidback to summary
public KEKIdentifier getKekid()
getKeyEncryptionAlgorithmback to summary
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
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.