public class

PasswordRecipientInformation

extends RecipientInformation
java.lang.Object
   ↳ org.bouncycastle.cms.RecipientInformation
     ↳ org.bouncycastle.cms.PasswordRecipientInformation

Class Overview

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

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.cms.RecipientInformation
Public Methods
CMSTypedStream getContentStream(Key key, Provider prov)
This method is deprecated. use getContentStream(Recipient)
CMSTypedStream getContentStream(Key key, String prov)
This method is deprecated. use getContentStream(Recipient)
String getKeyDerivationAlgOID()
return the object identifier for the key derivation algorithm, or null if there is none present.
AlgorithmParameters getKeyDerivationAlgParameters(Provider provider)
return an AlgorithmParameters object representing the parameters to the key derivation algorithm to the recipient.
AlgorithmParameters getKeyDerivationAlgParameters(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.
Protected Methods
RecipientOperator getRecipientOperator(Recipient recipient)
[Expand]
Inherited Methods
From class org.bouncycastle.cms.RecipientInformation
From class java.lang.Object

Public Methods

public CMSTypedStream getContentStream (Key key, Provider prov)

This method is deprecated.
use getContentStream(Recipient)

decrypt the content and return an input stream.

Throws
CMSException

public CMSTypedStream getContentStream (Key key, String prov)

This method is deprecated.
use getContentStream(Recipient)

decrypt the content and return an input stream.

public String getKeyDerivationAlgOID ()

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

Returns
  • OID for key derivation algorithm, if present.

public AlgorithmParameters getKeyDerivationAlgParameters (Provider provider)

return an AlgorithmParameters object representing the parameters to the key derivation algorithm to the recipient.

Returns
  • AlgorithmParameters object, null if there aren't any.

public AlgorithmParameters getKeyDerivationAlgParameters (String provider)

return an AlgorithmParameters object representing the parameters to the key derivation algorithm to the recipient.

Returns
  • AlgorithmParameters object, null if there aren't any.

public byte[] getKeyDerivationAlgParams ()

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

Returns
  • ASN.1 encoding of key derivation algorithm parameters.

Protected Methods

protected RecipientOperator getRecipientOperator (Recipient recipient)