Top Description Classes
module java.base

Package javax.crypto.spec


Provides classes and interfaces for key specifications and algorithm parameter specifications.

A key specification is a transparent representation of the key material that constitutes a key. A key may be specified in an algorithm-specific way, or in an algorithm-independent encoding format (such as ASN.1). This package contains key specifications for Diffie-Hellman public and private keys, as well as key specifications for DES, Triple DES, and PBE secret keys.

An algorithm parameter specification is a transparent representation of the sets of parameters used with an algorithm. This package contains algorithm parameter specifications for parameters used with the Diffie-Hellman, DES, Triple DES, PBE, RC2 and RC5 algorithms.

Related Documentation

For documentation that includes information about algorithm parameter and key specifications, please see:
Since
1.4

Class Summary

Modifier and TypeClass and Description
public class
ChaCha20ParameterSpec

This class specifies the parameters used with the ChaCha20 algorithm.

public class
DESedeKeySpec

This class specifies a DES-EDE ("triple-DES") key.

public class
DESKeySpec

This class specifies a DES key.

public class
DHGenParameterSpec

This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement.

public class
DHParameterSpec

This class specifies the set of parameters used with the Diffie-Hellman algorithm, as specified in PKCS #3: Diffie-Hellman Key-Agreement Standard.

public class
DHPrivateKeySpec

This class specifies a Diffie-Hellman private key with its associated parameters.

public class
DHPublicKeySpec

This class specifies a Diffie-Hellman public key with its associated parameters.

public class
GCMParameterSpec

Specifies the set of parameters required by a javax.crypto.Cipher using the Galois/Counter Mode (GCM) mode.

public class
IvParameterSpec

This class specifies an initialization vector (IV).

public class
OAEPParameterSpec

This class specifies the set of parameters used with OAEP Padding, as defined in the PKCS#1 v2.2 standard.

public class
PBEKeySpec

A user-chosen password that can be used with password-based encryption (PBE).

public class
PBEParameterSpec

This class specifies the set of parameters used with password-based encryption (PBE), as defined in the PKCS #5 standard.

public class
PSource

This class specifies the source for encoding input P in OAEP Padding, as defined in the PKCS#1 v2.2 standard.

public class
RC2ParameterSpec

This class specifies the parameters used with the RC2 algorithm.

public class
RC5ParameterSpec

This class specifies the parameters used with the RC5 algorithm.

public class
SecretKeySpec

This class specifies a secret key in a provider-independent fashion.