Since: API Level 1
package

javax.crypto

Classes | Description

This package provides the classes and interfaces for cryptographic applications implementing algorithms for encryption, decryption, or key agreement.

more...

Interfaces

SecretKeyA cryptographic secret (symmetric) key. 

Classes

CipherThis class provides access to implementations of cryptographic ciphers for encryption and decryption. 
CipherInputStreamThis class wraps an InputStream and a cipher so that read() methods return data that are read from the underlying InputStream and processed by the cipher. 
CipherOutputStreamThis class wraps an output stream and a cipher so that write methods send the data through the cipher before writing them to the underlying output stream. 
CipherSpiThis class defines the Service Provider Interface (SPI) for cryptographic ciphers. 
EncryptedPrivateKeyInfoThis class implements the EncryptedPrivateKeyInfo ASN.1 type as specified in PKCS #8 - Private-Key Information Syntax Standard
ExemptionMechanismThis class implements the functionality of an exemption mechanism such as key recovery, key weakening, or key escrow
ExemptionMechanismSpiThe Service Provider Interface (SPI) definition for the ExemptionMechanism class. 
KeyAgreementThis class provides the functionality for a key exchange protocol. 
KeyAgreementSpiThe Service Provider Interface (SPI) definition for the KeyAgreement class. 
KeyGeneratorThis class provides the public API for generating symmetric cryptographic keys. 
KeyGeneratorSpiThe Service Provider Interface (SPI) definition for the KeyGenerator class. 
MacThis class provides the public API for Message Authentication Code (MAC) algorithms. 
MacSpiThe Service-Provider Interface (SPI) definition for the Mac class. 
NullCipherThis class provides an identity cipher that does not transform the input data in any way. 
SealedObjectA SealedObject is a wrapper around a serializable object instance and encrypts it using a cryptographic cipher. 
SecretKeyFactoryThe public API for SecretKeyFactory implementations. 
SecretKeyFactorySpiThe Service Provider Interface (SPI) definition for the SecretKeyFactory class. 

Exceptions

BadPaddingExceptionThe exception that is thrown when a padding mechanism is expected for the input data, but the input data does not have the proper padding bytes. 
ExemptionMechanismExceptionThis is the base class for ExemptionMechanismException
IllegalBlockSizeExceptionThe exception, that is thrown when the data length provided to a block cipher does not match the block size of the cipher. 
NoSuchPaddingExceptionThe exception that is thrown when the requested padding mechanism is not supported. 
ShortBufferExceptionThe exception that is thrown when the result of an operation is attempted to store in a user provided buffer that is too small.