@NonNullByDefault
Package javax.crypto
-
Interface Summary Interface Description SecretKey A secret (symmetric) key. -
Class Summary Class Description Cipher This class provides the functionality of a cryptographic cipher for encryption and decryption.CipherSpi This class defines the Service Provider Interface (SPI) for theCipherclass.KeyAgreement This class provides the functionality of a key agreement (or key exchange) protocol.KeyAgreementSpi This class defines the Service Provider Interface (SPI) for theKeyAgreementclass.Mac This class provides the functionality of a "Message Authentication Code" (MAC) algorithm.MacSpi This class defines the Service Provider Interface (SPI) for theMacclass.SecretKeyFactory This class represents a factory for secret keys.SecretKeyFactorySpi This class defines the Service Provider Interface (SPI) for theSecretKeyFactoryclass. -
Exception Summary Exception Description AEADBadTagException This exception is thrown when aCipheroperating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag.BadPaddingException This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.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.NoSuchPaddingException This exception is thrown when a particular padding mechanism is requested but is not available in the environment.ShortBufferException This exception is thrown when an output buffer provided by the user is too short to hold the operation result.