This class represents a factory for secret keys. This is the generic ExemptionMechanism exception. 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. This exception is thrown when a particular padding mechanism is requested but is not available in the environment. This exception is thrown when an output buffer provided by the user is too short to hold the operation result.
Description Provides the classes and interfaces for cryptographic operations.
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.