Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.crypto
Interface SecretWithEncapsulation


public interface SecretWithEncapsulation

Interface describing secret with encapsulation details.


Method Summary
 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()
           
 

Method Detail

destroy

public void destroy()

isDestroyed

public boolean isDestroyed()

getSecret

public byte[] getSecret()
Return the secret associated with the encapsulation.
Returns:
the secret the encapsulation is for.

getEncapsulation

public byte[] getEncapsulation()
Return the data that carries the secret in its encapsulated form.
Returns:
the encapsulation of the secret.

Bouncy Castle Cryptography Library 1.77.0