com.digt.trusted.cms
Class RecipientInformation
java.lang.Object
com.digt.trusted.cms.RecipientInformation
- Direct Known Subclasses:
- KEKRecipientInformation, KeyTransRecipientInformation
public abstract class RecipientInformation
- extends java.lang.Object
Method Summary |
abstract byte[] |
getContent(java.security.Key key,
java.lang.String provider)
|
protected byte[] |
getContentFromSessionKey(java.security.Key sKey,
java.lang.String provider)
|
abstract byte[] |
getGOSTContent(java.security.Key key,
java.lang.String provider,
java.io.DataInputStream input_p7m_file)
|
java.lang.String |
getKeyEncryptionAlgOID()
return the object identifier for the key encryption algorithm. |
java.security.AlgorithmParameters |
getKeyEncryptionAlgorithmParameters(java.lang.String provider)
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the key this recipient holds. |
byte[] |
getKeyEncryptionAlgParams()
return the ASN.1 encoded key encryption algorithm parameters, or null if
there aren't any. |
RecipientId |
getRID()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rid
protected RecipientId rid
keyEncAlg
protected AlgorithmIdentifier keyEncAlg
data
protected EncryptedContentInfo data
RecipientInformation
protected RecipientInformation(AlgorithmIdentifier keyEncAlg,
EncryptedContentInfo data)
getRID
public RecipientId getRID()
getKeyEncryptionAlgOID
public java.lang.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 java.security.AlgorithmParameters getKeyEncryptionAlgorithmParameters(java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
- Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the key this recipient holds.
- 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.
java.security.NoSuchProviderException
- if the provider cannot be found.
getContentFromSessionKey
protected byte[] getContentFromSessionKey(java.security.Key sKey,
java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
- Throws:
CMSException
java.security.NoSuchProviderException
getContent
public abstract byte[] getContent(java.security.Key key,
java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
- Throws:
CMSException
java.security.NoSuchProviderException
getGOSTContent
public abstract byte[] getGOSTContent(java.security.Key key,
java.lang.String provider,
java.io.DataInputStream input_p7m_file)
throws CMSException,
java.security.NoSuchProviderException
- Throws:
CMSException
java.security.NoSuchProviderException