com.dstc.security.smime
Interface DecryptionResult


public interface DecryptionResult

An interface to represent the result of decrypting an S/MIME encrypted message. More specifically, an instance of DecryptionResult is returned from a decrypt() call on a CMSCipher instance on which setMessage() has been called with an encrypted message. From the returned object can be obtained the recovered plaintext message together with the EnvelopedData instance for the encrypted message.

See Also:
CMSCipher, EnvelopedData

Method Summary
 EnvelopedData getCMSEnvelopedData()
          Returns the CMS EnvelopedData for the encrypted message which can be queried for the encryption and recipient information.
 MimeMessage getMessage()
          Returns a MimeMessage representation of the recovered plaintext message.
 

Method Detail

getMessage

public MimeMessage getMessage()
Returns a MimeMessage representation of the recovered plaintext message.

getCMSEnvelopedData

public EnvelopedData getCMSEnvelopedData()
Returns the CMS EnvelopedData for the encrypted message which can be queried for the encryption and recipient information.