Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.dstc.security.cms
Interface DecryptionResult

public interface DecryptionResult

An interface to represent the result of decrypting CMS enveloped data

An instance of DecryptionResult returned from a call to CMSCipher.decrypt() indicates that the encrypted content encryption key has been located in the enveloped data and decrypted successfully by the caller. The actual decryption of the content with the restored content encryption key is performed only when the caller subsequently reads from the InputStream associated with the DecryptionResult instance. Any decryption errors encountered at this stage will be manifested as IOExceptions.

See Also:
  `EnvelopedData`

Method Summary
`EnvelopedData` | `getCMSEnvelopedData()` Returns the CMS EnvelopedData for the encrypted message which can be queried for recipient and encryption information.
`CMSTypedDataInputStream` | `getDecrypted()` Returns a CMSTypedDataInputStream from which the recovered plaintext data can be read.

Method Detail

### getDecrypted

    public CMSTypedDataInputStream getDecrypted()

  Returns a CMSTypedDataInputStream from which the recovered plaintext data can be read.

### getCMSEnvelopedData

    public EnvelopedData getCMSEnvelopedData()

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD