org.bouncycastle.cms
public abstract class RecipientInformation extends Object
Field Summary | |
---|---|
protected InputStream | _data |
protected AlgorithmIdentifier | _encAlg |
protected AlgorithmIdentifier | _keyEncAlg |
protected RecipientId | _rid |
Constructor Summary | |
---|---|
protected | RecipientInformation(AlgorithmIdentifier encAlg, AlgorithmIdentifier keyEncAlg, InputStream data) |
Method Summary | |
---|---|
byte[] | getContent(Key key, String provider) |
protected CMSTypedStream | getContentFromSessionKey(Key sKey, String provider) |
abstract CMSTypedStream | getContentStream(Key key, String provider) |
AlgorithmParameters | getKeyEncryptionAlgorithmParameters(String provider)
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the key this recipient holds.
|
String | getKeyEncryptionAlgOID()
return the object identifier for the key encryption algorithm. |
byte[] | getKeyEncryptionAlgParams()
return the ASN.1 encoded key encryption algorithm parameters, or null if
there aren't any. |
RecipientId | getRID() |
Parameters: provider the provider to generate the parameters for.
Returns: the parameters object, null if there is not one.
Throws: CMSException if the algorithm cannot be found, or the parameters can't be parsed. NoSuchProviderException if the provider cannot be found.
Returns: OID for key encryption algorithm.
Returns: ASN.1 encoding of key encryption algorithm parameters.