Top Description Methods
org.bouncycastle.crypto

public Interface SecretWithEncapsulation

extends Destroyable
Known Direct Implementers
org.bouncycastle.crypto.kems.SecretWithEncapsulationImpl, org.bouncycastle.pqc.crypto.util.SecretWithEncapsulationImpl
Imports
javax.security.auth.Destroyable

Interface describing secret with encapsulation details.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the encapsulation of the secret.
getEncapsulation
()

Return the data that carries the secret in its encapsulated form.

public byte[]

Returns:

the secret the encapsulation is for.
getSecret
()

Return the secret associated with the encapsulation.

Inherited from javax.security.auth.Destroyable:
destroyisDestroyed

Method Detail

getEncapsulationback to summary
public byte[] getEncapsulation()

Return the data that carries the secret in its encapsulated form.

Returns:byte[]

the encapsulation of the secret.

getSecretback to summary
public byte[] getSecret()

Return the secret associated with the encapsulation.

Returns:byte[]

the secret the encapsulation is for.