Interface DecryptionProvider

All Known Implementing Classes:
AsymmetricCipher, BaseCipher, SymmetricCipher

public interface DecryptionProvider
Provides Decrypt operation
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decrypt(byte[] cipherText)
    Decrypts input cipher bytes
    default byte[]
    decrypt(byte[] cipherText, AlgorithmParameterSpec params)
    Decrypts input cipher bytes.
  • Method Details

    • decrypt

      byte[] decrypt(byte[] cipherText)
      Decrypts input cipher bytes
      Parameters:
      cipherText - as a byte array
      Returns:
      plain text as byte array
    • decrypt

      default byte[] decrypt(byte[] cipherText, AlgorithmParameterSpec params)
      Decrypts input cipher bytes.
      Parameters:
      cipherText - Encrypted text as a byte array.
      params - The algorithm parameters.
      Returns:
      Plain text as byte array.