Class SymmetricCipher

  • All Implemented Interfaces:
    ICipher, ICipherSpi

    public class SymmetricCipher
    extends AbstractCipher
    Generic cipher implementation, based on symmetric ciphers available in the Java Cryptography Architecture (JCA). Also includes a Mac in the encrypted value for integrity check.

    Configuration elements:

    • provider: may be used to specify a JCA provider for the algortithms.
    • algorithm: the symmetric cipher algorithm.
    • mode: the cipher mode.
    • padding: the padding type.
    • keyGenerationSize: the size, in bits, of the keys automatically generated for this cipher.
    • mac: the MAC's algorithm.
    Since:
    5.5.0
    Version:
    $Revision: 24462 $ $Date: 2021-04-19 11:40:07 -0300 (Mon, 19 Apr 2021) $
    See Also:
    javax.crypto