iaik.smime.ess.utils
Class EnvelopedESSLayer
java.lang.Object
iaik.smime.ess.utils.ESSLayer
iaik.smime.ess.utils.EnvelopedESSLayer
public class EnvelopedESSLayer
- extends ESSLayer
An ESS layer holding an encrypted S/MIME entity.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvelopedESSLayer
public EnvelopedESSLayer(EncryptedContent content)
- Creates an ESSLayer for the given
encrypted
content.
- Parameters:
content
- the EncryptedContent for this ESSLayer
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 usedrecipients
- 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
IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC