Class AesDecrypter

  • All Implemented Interfaces:
    Decrypter

    public class AesDecrypter
    extends java.lang.Object
    implements Decrypter
    AES decrypter implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      AesDecrypter​(java.lang.String algorithm, javax.crypto.SecretKey decryptionKey)
      Creates a decrypter for the specified key using default encryption algorithms.
      AesDecrypter​(javax.crypto.SecretKey decryptionKey)
      Creates a decrypter for the specified key using default encryption algorithms.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decrypt​(java.lang.String ciphertext)
      Decrypts the specified ciphertext.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AesDecrypter

        public AesDecrypter​(javax.crypto.SecretKey decryptionKey)
        Creates a decrypter for the specified key using default encryption algorithms.
        Parameters:
        decryptionKey - the private key used for decryption
      • AesDecrypter

        public AesDecrypter​(java.lang.String algorithm,
                            javax.crypto.SecretKey decryptionKey)
        Creates a decrypter for the specified key using default encryption algorithms.
        Parameters:
        algorithm - security algorithm to use
        decryptionKey - the private key used for decryption
    • Method Detail

      • decrypt

        public java.lang.String decrypt​(java.lang.String ciphertext)
        Decrypts the specified ciphertext.
        Specified by:
        decrypt in interface Decrypter
        Parameters:
        ciphertext - the ciphertext to be decrypted
        Returns:
        the decrypted payload