com.digt.trusted.cms
Class KEKRecipientInformation
java.lang.Object
com.digt.trusted.cms.RecipientInformation
com.digt.trusted.cms.KEKRecipientInformation
public class KEKRecipientInformation
- extends RecipientInformation
the RecipientInfo class for a recipient who has been sent a message
encrypted using a secret key known to the other side.
Method Summary |
byte[] |
getContent(java.security.Key key,
java.lang.String prov)
decrypt the content and return it as a byte array. |
byte[] |
getGOSTContent(java.security.Key key,
java.lang.String prov,
java.io.DataInputStream input_p7m_file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEKRecipientInformation
public KEKRecipientInformation(KEKRecipientInfo info,
EncryptedContentInfo data)
getGOSTContent
public byte[] getGOSTContent(java.security.Key key,
java.lang.String prov,
java.io.DataInputStream input_p7m_file)
throws CMSException,
java.security.NoSuchProviderException
- Specified by:
getGOSTContent
in class RecipientInformation
- Throws:
CMSException
java.security.NoSuchProviderException
getContent
public byte[] getContent(java.security.Key key,
java.lang.String prov)
throws CMSException,
java.security.NoSuchProviderException
- decrypt the content and return it as a byte array.
- Specified by:
getContent
in class RecipientInformation
- Throws:
CMSException
java.security.NoSuchProviderException