public class SecretWithEncapsulationImpl extends java.lang.Object implements SecretWithEncapsulation
| Constructor and Description |
|---|
SecretWithEncapsulationImpl(byte[] sessionKey,
byte[] cipher_text) |
| Modifier and Type | Method and Description |
|---|---|
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)
public byte[] getSecret()
SecretWithEncapsulationgetSecret in interface SecretWithEncapsulationpublic byte[] getEncapsulation()
SecretWithEncapsulationgetEncapsulation in interface SecretWithEncapsulationpublic void destroy()
throws javax.security.auth.DestroyFailedException
destroy in interface javax.security.auth.Destroyablejavax.security.auth.DestroyFailedExceptionpublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable