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

public Class PasswordRecipientInfo

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

RFC 5652: Content encryption key delivery mechanisms.
PasswordRecipientInfo ::= SEQUENCE {
    version       CMSVersion,   -- Always set to 0
    keyDerivationAlgorithm [0] KeyDerivationAlgorithmIdentifier
                            OPTIONAL,
    keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
    encryptedKey  EncryptedKey }

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PasswordRecipientInfo(AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)

public
PasswordRecipientInfo(AlgorithmIdentifier keyDerivationAlgorithm, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)

private

Method Summary

Modifier and TypeMethod and Description
public ASN1OctetString
public static PasswordRecipientInfo
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 PasswordRecipientInfo object from a tagged object.

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

Return a PasswordRecipientInfo object from the given object.

public AlgorithmIdentifier
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
keyDerivationAlgorithmback to summary
private AlgorithmIdentifier keyDerivationAlgorithm
keyEncryptionAlgorithmback to summary
private AlgorithmIdentifier keyEncryptionAlgorithm
versionback to summary
private ASN1Integer version

Constructor Detail

PasswordRecipientInfoback to summary
public PasswordRecipientInfo(AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
PasswordRecipientInfoback to summary
public PasswordRecipientInfo(AlgorithmIdentifier keyDerivationAlgorithm, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1OctetString encryptedKey)
PasswordRecipientInfoback to summary
private PasswordRecipientInfo(ASN1Sequence seq)

Method Detail

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

Return a PasswordRecipientInfo 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 PasswordRecipientInfo getInstance(Object obj)

Return a PasswordRecipientInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKeyDerivationAlgorithmback to summary
public AlgorithmIdentifier getKeyDerivationAlgorithm()
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.