Retrieves the original (encapsulated) object.
The encapsulated object is unsealed (using the given Cipher, assuming that the Cipher is already properly initialized) and de-serialized, before it is returned.
c | the cipher used to unseal the object |
NullPointerException | if the given cipher is null. | |
IOException | if an error occurs during de-serialiazation | |
ClassNotFoundException | if an error occurs during de-serialiazation | |
IllegalBlockSizeException | if the given cipher is a block cipher, no padding has been requested, and the total input length is not a multiple of the cipher's block size | |
BadPaddingException | if the given cipher has been initialized for decryption, and padding has been specified, but the input data does not have proper expected padding bytes |
Diagram: SealedObject