public class SecretWithEncapsulationImpl
extends java.lang.Object
implements org.bouncycastle.crypto.SecretWithEncapsulation
Constructor and Description |
---|
SecretWithEncapsulationImpl(byte[] sessionKey,
byte[] cipher_text) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
byte[] |
getEncapsulation() |
byte[] |
getSecret() |
boolean |
isDestroyed() |
public SecretWithEncapsulationImpl(byte[] sessionKey, byte[] cipher_text)
public byte[] getSecret()
getSecret
in interface org.bouncycastle.crypto.SecretWithEncapsulation
public byte[] getEncapsulation()
getEncapsulation
in interface org.bouncycastle.crypto.SecretWithEncapsulation
public void destroy() throws javax.security.auth.DestroyFailedException
javax.security.auth.DestroyFailedException
public boolean isDestroyed()