org.bouncycastle.cms
Class RecipientInformation
java.lang.Object
org.bouncycastle.cms.RecipientInformation
public abstract class RecipientInformation
extends java.lang.Object
data
protected EncryptedContentInfo data
keyEncAlg
protected AlgorithmIdentifier keyEncAlg
RecipientInformation
protected RecipientInformation(AlgorithmIdentifier keyEncAlg,
EncryptedContentInfo data)
getContent
public byte[] getContent(Key key,
String provider)
throws CMSException,
NoSuchProviderException
getContentFromSessionKey
protected byte[] getContentFromSessionKey(Key sKey,
String provider)
throws CMSException,
NoSuchProviderException
getKeyEncryptionAlgOID
public String getKeyEncryptionAlgOID()
return the object identifier for the key encryption algorithm.
getKeyEncryptionAlgParams
public byte[] getKeyEncryptionAlgParams()
return the ASN.1 encoded key encryption algorithm parameters, or null if
there aren't any.
getKeyEncryptionAlgorithmParameters
public AlgorithmParameters getKeyEncryptionAlgorithmParameters(String provider)
throws CMSException,
NoSuchProviderException
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the key this recipient holds.
provider
- the provider to generate the parameters for.
- the parameters object, null if there is not one.
CMSException
- if the algorithm cannot be found, or the parameters can't be parsed.