iaik.smime.ess.utils
Class EnvelopedESSLayer

java.lang.Object
  extended by iaik.smime.ess.utils.ESSLayer
      extended by iaik.smime.ess.utils.EnvelopedESSLayer

public class EnvelopedESSLayer
extends ESSLayer

An ESS layer holding an encrypted S/MIME entity.


Field Summary
 
Fields inherited from class iaik.smime.ess.utils.ESSLayer
content_, dataHandler_, ENVELOPED_DATA, SIGNED_DATA, type_
 
Constructor Summary
EnvelopedESSLayer(EncryptedContent content)
          Creates an ESSLayer for the given encrypted content.
 
Method Summary
 EncryptedContent expand(OriginatorInfo originator, RecipientInfo[] recipients, AlgorithmID contentEA, int cekLength)
          Expands this ESSLayer to create a new EncryptedContent for the recipients of the MLA owning this ESS layer.
 boolean isDecrypted()
          Asks whether the EncryptedContent of this layer already has been decrypted.
 
Methods inherited from class iaik.smime.ess.utils.ESSLayer
getContent, getDataHandler, getException, getType, setDataHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopedESSLayer

public EnvelopedESSLayer(EncryptedContent content)
Creates an ESSLayer for the given encrypted content.

Parameters:
content - the EncryptedContent for this ESSLayer
Method Detail

expand

public EncryptedContent expand(OriginatorInfo originator,
                               RecipientInfo[] recipients,
                               AlgorithmID contentEA,
                               int cekLength)
                        throws javax.mail.MessagingException,
                               java.security.NoSuchAlgorithmException
Expands this ESSLayer to create a new EncryptedContent for the recipients of the MLA owning this ESS layer.

Parameters:
originator - certificates and/or certificate revocation list information of the originator if required by the key management algorithm used
recipients - the RecipientInfos for the recipients of the mailing list
Returns:
the new, expanded EncryptedContent
Throws:
javax.mail.MessagingException - if there occurs a problem when accessing the content of the layer to be expanded
java.security.NoSuchAlgorithmException - if there requested content encryption algorithm is not supported

isDecrypted

public boolean isDecrypted()
Asks whether the EncryptedContent of this layer already has been decrypted. If the EncryptedContent of this yet has not been decrypted, an application has to take care to decrypt the symmetric key before accessing the content.

Returns:
true if the content is decrypted, false if not

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 5.1, (c) 2002 IAIK, (c) 2003 - 2010 SIC