public class EnvelopedESSLayer extends ESSLayer
content_, dataHandler_, ENVELOPED_DATA, SIGNED_DATA, type_
Constructor and Description |
---|
EnvelopedESSLayer(EncryptedContent content)
Creates an ESSLayer for the given
encrypted
content. |
Modifier and Type | Method and Description |
---|---|
EncryptedContent |
expand(OriginatorInfo originator,
RecipientInfo[] recipients,
iaik.asn1.structures.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.
|
getContent, getDataHandler, getException, getType, setDataHandler
public EnvelopedESSLayer(EncryptedContent content)
encrypted
content.content
- the EncryptedContent for this ESSLayerpublic EncryptedContent expand(OriginatorInfo originator, RecipientInfo[] recipients, iaik.asn1.structures.AlgorithmID contentEA, int cekLength) throws jakarta.mail.MessagingException, java.security.NoSuchAlgorithmException
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 listjakarta.mail.MessagingException
- if there occurs a problem when accessing
the content of the layer to be expandedjava.security.NoSuchAlgorithmException
- if there requested content encryption algorithm is not supportedpublic boolean isDecrypted()
true
if the content is decrypted, false
if not