javax.crypto.spec

Provides the classes and interfaces for cryptographic operations. The cryptographic operations defined in this package include encryption, key generation and key agreement, and Message Authentication Code (MAC) generation.

Support for encryption includes symmetric, asymmetric, block, and stream ciphers. This package also supports secure streams and sealed objects.

Many of the classes provided in this package are provider-based. The class itself defines a programming interface to which applications may write. The implementations themselves may then be written by independent third-party vendors and plugged in seamlessly as needed. Therefore application developers may take advantage of any number of provider-based implementations without having to add or rewrite code.

Package Specification

Related Documentation

For further documentation, please see:

Classes

DESedeKeySpec This class specifies a DES-EDE ("triple-DES") key. 
DESKeySpec This class specifies a DES key. 
DHGenParameterSpec This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. 
DHParameterSpec This class specifies the set of parameters used with the Diffie-Hellman algorithm, as specified in PKCS #3: Diffie-Hellman Key-Agreement Standard
DHPrivateKeySpec This class specifies a Diffie-Hellman private key with its associated parameters. 
DHPublicKeySpec This class specifies a Diffie-Hellman public key with its associated parameters. 
GCMParameterSpec Specifies the set of parameters required by a Cipher using the Galois/Counter Mode (GCM) mode. 
IvParameterSpec This class specifies an initialization vector (IV). 
OAEPParameterSpec This class specifies the set of parameters used with OAEP Padding, as defined in the PKCS #1 standard. 
PBEKeySpec A user-chosen password that can be used with password-based encryption (PBE). 
PBEParameterSpec This class specifies the set of parameters used with password-based encryption (PBE), as defined in the PKCS #5 standard. 
PSource This class specifies the source for encoding input P in OAEP Padding, as defined in the PKCS #1 standard. 
PSource.PSpecified This class is used to explicitly specify the value for encoding input P in OAEP Padding. 
RC2ParameterSpec This class specifies the parameters used with the RC2 algorithm. 
RC5ParameterSpec This class specifies the parameters used with the RC5 algorithm. 
SecretKeySpec This class specifies a secret key in a provider-independent fashion.