Interface ContextSpec
- All Known Subinterfaces:
ChaChaBaseSpec
- All Known Implementing Classes:
AesSpec, ChaCha20Poly1305Spec, ChaChaSpec, DhSpec, DigestSpec, EcdhCurveSpec, EcdsaCurveSpec, ElgamalEncSpec, HmacSpec, RsaEncSpec, RsaSigSpec, VoidSpec, XdhSpec
public interface ContextSpec
Marker interface for per-operation parameters.
Some cryptographic algorithms require additional runtime parameters that are distinct from the key material. For example, RSA can require padding parameters such as OAEP or PSS options, while an AEAD cipher might accept a tag length or nonce construction strategy.
Implementations of this interface are provided by the library for algorithms
that need them. Applications typically do not implement ContextSpec
directly.
Thread safety
Implementations should be immutable, as these specifications may be reused across multiple operations.
- Since:
- 1.0