public class SecretWithEncapsulationImpl extends Object implements SecretWithEncapsulation
| Constructor and Description |
|---|
SecretWithEncapsulationImpl(byte[] sessionKey,
byte[] cipher_text) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkDestroyed() |
void |
destroy() |
byte[] |
getEncapsulation()
Return the data that carries the secret in its encapsulated form.
|
byte[] |
getSecret()
Return the secret associated with the encapsulation.
|
boolean |
isDestroyed() |
public SecretWithEncapsulationImpl(byte[] sessionKey,
byte[] cipher_text)
void checkDestroyed()
public void destroy()
throws DestroyFailedException
destroy in interface DestroyableDestroyFailedExceptionpublic byte[] getEncapsulation()
SecretWithEncapsulationgetEncapsulation in interface SecretWithEncapsulationpublic byte[] getSecret()
SecretWithEncapsulationgetSecret in interface SecretWithEncapsulationpublic boolean isDestroyed()
isDestroyed in interface Destroyable