kz.gamma.cms
Class KeyTransRecipientInformation
java.lang.Object
kz.gamma.cms.RecipientInformation
kz.gamma.cms.KeyTransRecipientInformation
public class KeyTransRecipientInformation
- extends RecipientInformation
the KeyTransRecipientInformation class for a recipient who has been sent a secret
key encrypted using their public key that needs to be used to
extract the message.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_info
private KeyTransRecipientInfo _info
_encAlg
private AlgorithmIdentifier _encAlg
KeyTransRecipientInformation
public KeyTransRecipientInformation(KeyTransRecipientInfo info,
AlgorithmIdentifier encAlg,
java.io.InputStream data)
getExchangeEncryptionAlgorithmName
private java.lang.String getExchangeEncryptionAlgorithmName(DERObjectIdentifier oid)
getContentStream
public CMSTypedStream getContentStream(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:
getContentStream in class RecipientInformation
- Throws:
CMSException
java.security.NoSuchProviderException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.