javax.crypto.interfaces | Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3. |
javax.crypto.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications. |
SecretKey | A secret (symmetric) key. | code | html |
CipherSpi | This class defines the Service Provider Interface (SPI)
for the Cipher class. |
code | html |
ExemptionMechanismSpi | This class defines the Service Provider Interface (SPI)
for the ExemptionMechanism class. |
code | html |
KeyAgreementSpi | This class defines the Service Provider Interface (SPI)
for the KeyAgreement class. |
code | html |
KeyGeneratorSpi | This class defines the Service Provider Interface (SPI)
for the KeyGenerator class. |
code | html |
MacSpi | This class defines the Service Provider Interface (SPI)
for the Mac class. |
code | html |
SecretKeyFactorySpi | This class defines the Service Provider Interface (SPI)
for the SecretKeyFactory class. |
code | html |
AEADBadTagException | This exception is thrown when a Cipher operating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag. | code | html |
BadPaddingException | This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly. | code | html |
Cipher | This class provides the functionality of a cryptographic cipher for encryption and decryption. | code | html |
Cipher.Transform | Nested class to deal with modes and paddings. | code | html |
CipherInputStream | A CipherInputStream is composed of an InputStream and a Cipher so that read() methods return data that are read in from the underlying InputStream but have been additionally processed by the Cipher. | code | html |
CipherOutputStream | A CipherOutputStream is composed of an OutputStream and a Cipher so that write() methods first process the data before writing them out to the underlying OutputStream. | code | html |
CryptoAllPermission | The CryptoAllPermission is a permission that implies any other crypto permissions. | code | html |
CryptoAllPermissionCollection | A CryptoAllPermissionCollection stores a collection of CryptoAllPermission permissions. | code | html |
CryptoPermission | The CryptoPermission class extends the java.security.Permission class. | code | html |
CryptoPermissionCollection | A CryptoPermissionCollection stores a set of CryptoPermission permissions. | code | html |
CryptoPermissions | This class contains CryptoPermission objects, organized into PermissionCollections according to algorithm names. | code | html |
CryptoPolicyParser | JCE has two pairs of jurisdiction policy files: one represents U.S. | code | html |
CryptoPolicyParser.CryptoPermissionEntry | Each crypto permission entry in the policy configuration file is represented by a CryptoPermissionEntry object. | code | html |
CryptoPolicyParser.GrantEntry | Each grant entry in the policy configuration file is represented by a GrantEntry object. | code | html |
CryptoPolicyParser.ParsingException | code | html | |
EncryptedPrivateKeyInfo | This class implements the EncryptedPrivateKeyInfo type
as defined in PKCS #8. |
code | html |
ExemptionMechanism | This class provides the functionality of an exemption mechanism, examples of which are key recovery, key weakening, and key escrow. | code | html |
ExemptionMechanismException | This is the generic ExemptionMechanism exception. | code | html |
IllegalBlockSizeException | This exception is thrown when the length of data provided to a block cipher is incorrect, i.e., does not match the block size of the cipher. | code | html |
JarVerifier | This class verifies JAR files (and any supporting JAR files), and determines whether they may be used in this implementation. | code | html |
JceSecurity | This class instantiates implementations of JCE engine classes from providers registered with the java.security.Security object. | code | html |
JceSecurityManager | The JCE security manager. | code | html |
KeyAgreement | This class provides the functionality of a key agreement (or key exchange) protocol. | code | html |
KeyGenerator | This class provides the functionality of a secret (symmetric) key generator. | code | html |
Mac | This class provides the functionality of a "Message Authentication Code" (MAC) algorithm. | code | html |
NoSuchPaddingException | This exception is thrown when a particular padding mechanism is requested but is not available in the environment. | code | html |
NullCipher | The NullCipher class is a class that provides an "identity cipher" -- one that does not tranform the plaintext. | code | html |
NullCipherImpl | Implementation of the identity cipher. | code | html |
NullCipherSpi | This class provides a delegate for the identity cipher - one that does not tranform the plaintext. | code | html |
PermissionsEnumerator | code | html | |
SealedObject | This class enables a programmer to create an object and protect its confidentiality with a cryptographic algorithm. | code | html |
SecretKeyFactory | This class represents a factory for secret keys. | code | html |
ShortBufferException | This exception is thrown when an output buffer provided by the user is too short to hold the operation result. | code | html |
Support | code | html | |
extObjectInputStream | code | html |
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.