Module java.base
Package javax.crypto
✗
package javax.crypto
Comparing jdk-20-ga and jdk-21+35
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.
Related Documentation
For further documentation, please see:- Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=security_guide_jca.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_jca. Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=security_guide_jca.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_jca.Java Cryptography Architecture (JCA) Reference Guide
- Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=security_guide_impl_provider.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_impl_provider. Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=security_guide_impl_provider.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_impl_provider.How to Implement a Provider in the Java Cryptography Architecture
- Since:
- 1.4
Types
- ✓ AEADBadTagException
- ✓ BadPaddingException
- ✗ Cipher
- ✓ CipherInputStream
- ✓ CipherOutputStream
- ✓ CipherSpi
- ① DecapsulateException
- ✓ EncryptedPrivateKeyInfo
- ✓ ExemptionMechanism
- ✓ ExemptionMechanismException
- ✓ ExemptionMechanismSpi
- ✓ IllegalBlockSizeException
- ① KEM
- ① KEMSpi
- ✓ KeyAgreement
- ✓ KeyAgreementSpi
- ✗ KeyGenerator
- ✗ KeyGeneratorSpi
- ✓ Mac
- ✓ MacSpi
- ✓ NoSuchPaddingException
- ✓ NullCipher
- ✓ SealedObject
- ✓ SecretKey
- ✓ SecretKeyFactory
- ✓ SecretKeyFactorySpi
- ✓ ShortBufferException
Summary
Elements | Comments | Descriptions | Total | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
javax.crypto | 2 | 2 | ||||||||
Cipher | 7 | 7 | ||||||||
DecapsulateException | 1 | 3 | 4 | |||||||
KEM | 4 | 10 | 14 | |||||||
KEMSpi | 3 | 3 | 6 | |||||||
KeyGenerator | 2 | 2 | ||||||||
KeyGeneratorSpi | 2 | 2 | ||||||||
Total | 8 | 16 | 13 | 37 |