Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto
Interface SecretWithEncapsulation

All Superinterfaces:
  javax.security.auth.Destroyable

All Known Implementing Classes:
  SecretWithEncapsulationImpl

public interface SecretWithEncapsulation
extends javax.security.auth.Destroyable

Interface describing secret with encapsulation details.

Method Summary
`byte[]` | `getEncapsulation()` Return the data that carries the secret in its encapsulated form.
`byte[]` | `getSecret()` Return the secret associated with the encapsulation.

Methods inherited from interface javax.security.auth.Destroyable
`destroy, isDestroyed`

Method Detail

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD