org.bouncycastle.crypto

## Interface SecretWithEncapsulation

- All Superinterfaces:
    Destroyable
  All Known Implementing Classes:
    SecretWithEncapsulationImpl

      public interface SecretWithEncapsulation
      extends Destroyable

  Interface describing secret with encapsulation details.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

    - #### getEncapsulation

          byte[] getEncapsulation()

      Return the data that carries the secret in its encapsulated form.
      Returns:
        the encapsulation of the secret.

    - #### getSecret

          byte[] getSecret()

      Return the secret associated with the encapsulation.
      Returns:
        the secret the encapsulation is for.