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()
SecretWithEncapsulation
getSecret
in interface SecretWithEncapsulation
public byte[] getEncapsulation()
SecretWithEncapsulation
getEncapsulation
in interface SecretWithEncapsulation
public void destroy() throws javax.security.auth.DestroyFailedException
destroy
in interface javax.security.auth.Destroyable
javax.security.auth.DestroyFailedException
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable