ParametersWithContext (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.params

## Class ParametersWithContext

- java.lang.Object
- - org.bouncycastle.crypto.params.ParametersWithContext

- All Implemented Interfaces:
    CipherParameters

      public class ParametersWithContext
      extends java.lang.Object
      implements CipherParameters

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParametersWithContext(CipherParameters parameters, byte[] context)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `copyContextTo(byte[] buf, int off, int len)`
    `byte[]` | `getContext()`
    `int` | `getContextLength()`
    `CipherParameters` | `getParameters()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ParametersWithContext

          public ParametersWithContext(CipherParameters parameters,
                                       byte[] context)

  - ### Method Detail

    - #### copyContextTo

          public void copyContextTo(byte[] buf,
                                    int off,
                                    int len)

    - #### getContext

          public byte[] getContext()

    - #### getContextLength

          public int getContextLength()

    - #### getParameters

          public CipherParameters getParameters()