org.bouncycastle.cms
Class RecipientInformation
java.lang.Object
org.bouncycastle.cms.RecipientInformation
public abstract class RecipientInformation
extends java.lang.Object
_data
protected InputStream _data
_encAlg
protected AlgorithmIdentifier _encAlg
_keyEncAlg
protected AlgorithmIdentifier _keyEncAlg
RecipientInformation
protected RecipientInformation(AlgorithmIdentifier encAlg,
AlgorithmIdentifier keyEncAlg,
InputStream data)
getContent
public byte[] getContent(Key key,
String provider)
throws CMSException,
NoSuchProviderException
getContentFromSessionKey
protected CMSTypedStream getContentFromSessionKey(Key sKey,
String provider)
throws CMSException,
NoSuchProviderException
getContentStream
public abstract CMSTypedStream getContentStream(Key key,
String provider)
throws CMSException,
NoSuchProviderException
getDataEncryptionAlgorithmName
protected String getDataEncryptionAlgorithmName(DERObjectIdentifier oid)
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.