kz.gamma.cms
Class KEKRecipientInformation

java.lang.Object
  extended by kz.gamma.cms.RecipientInformation
      extended by kz.gamma.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.


Field Summary
private  AlgorithmIdentifier _encAlg
           
private  KEKRecipientInfo _info
           
 
Fields inherited from class kz.gamma.cms.RecipientInformation
_data, _keyEncAlg, _rid
 
Constructor Summary
KEKRecipientInformation(KEKRecipientInfo info, AlgorithmIdentifier encAlg, java.io.InputStream data)
           
 
Method Summary
 CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov)
          decrypt the content and return an input stream.
 
Methods inherited from class kz.gamma.cms.RecipientInformation
getContent, getContentFromSessionKey, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getRID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_info

private KEKRecipientInfo _info

_encAlg

private AlgorithmIdentifier _encAlg
Constructor Detail

KEKRecipientInformation

public KEKRecipientInformation(KEKRecipientInfo info,
                               AlgorithmIdentifier encAlg,
                               java.io.InputStream data)
Method Detail

getContentStream

public CMSTypedStream getContentStream(java.security.Key key,
                                       java.lang.String prov)
                                throws CMSException,
                                       java.security.NoSuchProviderException
decrypt the content and return an input stream.

Specified by:
getContentStream in class RecipientInformation
Throws:
CMSException
java.security.NoSuchProviderException


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.