org.bouncycastle.cms
public class PasswordRecipientInformation extends RecipientInformation
Constructor and Description |
---|
PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
java.io.InputStream data) |
PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
java.io.InputStream data) |
Modifier and Type | Method and Description |
---|---|
CMSTypedStream |
getContentStream(java.security.Key key,
java.security.Provider prov)
decrypt the content and return an input stream.
|
CMSTypedStream |
getContentStream(java.security.Key key,
java.lang.String prov)
decrypt the content and return an input stream.
|
java.lang.String |
getKeyDerivationAlgOID()
return the object identifier for the key derivation algorithm, or null
if there is none present.
|
java.security.AlgorithmParameters |
getKeyDerivationAlgParameters(java.security.Provider provider)
return an AlgorithmParameters object representing the parameters to the
key derivation algorithm to the recipient.
|
java.security.AlgorithmParameters |
getKeyDerivationAlgParameters(java.lang.String provider)
return an AlgorithmParameters object representing the parameters to the
key derivation algorithm to the recipient.
|
byte[] |
getKeyDerivationAlgParams()
return the ASN.1 encoded key derivation algorithm parameters, or null if
there aren't any.
|
getContent, getContent, getContentFromSessionKey, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getMac, getRID
public PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info, org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg, java.io.InputStream data)
public PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info, org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg, java.io.InputStream data)
public java.lang.String getKeyDerivationAlgOID()
public byte[] getKeyDerivationAlgParams()
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