public class PasswordRecipientInformation extends RecipientInformation
keyEncAlg, messageAlgorithm, rid, secureReadable
Modifier and Type | Method and Description |
---|---|
CMSTypedStream |
getContentStream(java.security.Key key,
java.security.Provider prov)
Deprecated.
use getContentStream(Recipient)
|
CMSTypedStream |
getContentStream(java.security.Key key,
java.lang.String prov)
Deprecated.
use getContentStream(Recipient)
|
java.lang.String |
getKeyDerivationAlgOID()
return the object identifier for the key derivation algorithm, or null
if there is none present.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getKeyDerivationAlgorithm()
Return the key derivation algorithm details for the key in this recipient.
|
java.security.AlgorithmParameters |
getKeyDerivationAlgParameters(java.security.Provider provider)
Deprecated.
use getKeyDerivationAlgorithm and JceAlgorithmIdentifierConverter().
|
java.security.AlgorithmParameters |
getKeyDerivationAlgParameters(java.lang.String provider)
Deprecated.
use getKeyDerivationAlgorithm and JceAlgorithmIdentifierConverter().
|
byte[] |
getKeyDerivationAlgParams()
return the ASN.1 encoded key derivation algorithm parameters, or null if
there aren't any.
|
protected byte[] |
getPasswordBytes(int scheme,
char[] password) |
protected RecipientOperator |
getRecipientOperator(Recipient recipient) |
getContent, getContent, getContent, getContentDigest, getContentStream, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithm, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getMac, getRID
public java.lang.String getKeyDerivationAlgOID()
public byte[] getKeyDerivationAlgParams()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKeyDerivationAlgorithm()
public java.security.AlgorithmParameters getKeyDerivationAlgParameters(java.lang.String provider) throws java.security.NoSuchProviderException
java.security.NoSuchProviderException
public java.security.AlgorithmParameters getKeyDerivationAlgParameters(java.security.Provider provider)
public CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov) throws CMSException, java.security.NoSuchProviderException
getContentStream
in class RecipientInformation
CMSException
java.security.NoSuchProviderException
public CMSTypedStream getContentStream(java.security.Key key, java.security.Provider prov) throws CMSException
getContentStream
in class RecipientInformation
CMSException
protected RecipientOperator getRecipientOperator(Recipient recipient) throws CMSException, java.io.IOException
getRecipientOperator
in class RecipientInformation
CMSException
java.io.IOException
protected byte[] getPasswordBytes(int scheme, char[] password)