Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class PasswordRecipientInformation

extends RecipientInformation
Class Inheritance
Imports
java.io.IOException, java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.asn1.cms.PasswordRecipientInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Integers

the RecipientInfo class for a recipient who has been sent a message encrypted using a password.

Field Summary

Modifier and TypeField and Description
pack-priv static Map<K, V>
private PasswordRecipientInfo
pack-priv static Map<K, V>
Inherited from org.bouncycastle.cms.RecipientInformation:
keyEncAlgmessageAlgorithmridsecureReadable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

OID for key derivation algorithm, if present.
getKeyDerivationAlgOID
()

return the object identifier for the key derivation algorithm, or null if there is none present.

public AlgorithmIdentifier

Returns:

AlgorithmIdentifier representing the key derivation algorithm.
getKeyDerivationAlgorithm
()

Return the key derivation algorithm details for the key in this recipient.

public byte[]

Returns:

ASN.1 encoding of key derivation algorithm parameters.
getKeyDerivationAlgParams
()

return the ASN.1 encoded key derivation algorithm parameters, or null if there aren't any.

protected RecipientOperator
Inherited from org.bouncycastle.cms.RecipientInformation:
getContentgetContentDigestgetContentStreamgetContentTypegetKeyEncryptionAlgOIDgetKeyEncryptionAlgorithmgetKeyEncryptionAlgParamsgetMacgetRID

Field Detail

BLOCKSIZESback to summary
pack-priv static Map<K, V> BLOCKSIZES
infoback to summary
private PasswordRecipientInfo info
KEYSIZESback to summary
pack-priv static Map<K, V> KEYSIZES

Constructor Detail

PasswordRecipientInformationback to summary
pack-priv PasswordRecipientInformation(PasswordRecipientInfo info, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable)

Method Detail

getKeyDerivationAlgOIDback to summary
public String getKeyDerivationAlgOID()

return the object identifier for the key derivation algorithm, or null if there is none present.

Returns:String

OID for key derivation algorithm, if present.

getKeyDerivationAlgorithmback to summary
public AlgorithmIdentifier getKeyDerivationAlgorithm()

Return the key derivation algorithm details for the key in this recipient.

Returns:AlgorithmIdentifier

AlgorithmIdentifier representing the key derivation algorithm.

getKeyDerivationAlgParamsback to summary
public byte[] getKeyDerivationAlgParams()

return the ASN.1 encoded key derivation algorithm parameters, or null if there aren't any.

Returns:byte[]

ASN.1 encoding of key derivation algorithm parameters.

getRecipientOperatorback to summary
protected RecipientOperator getRecipientOperator(Recipient recipient) throws CMSException, IOException

Implements abstract org.bouncycastle.cms.RecipientInformation.getRecipientOperator.