Interface JsonDecryptor

All Known Implementing Classes:
SimpleDecryptor

public interface JsonDecryptor
Decrypts an encrypted JSON value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Decrypts the specified value.
    Returns the type of cryptographic representation that this JSON decryptor supports.
  • Method Details

    • getType

      String getType()
      Returns the type of cryptographic representation that this JSON decryptor supports. Expressed in the type property of a JsonCrypto object.
      Returns:
      The type.
    • decrypt

      JsonValue decrypt(JsonValue value) throws JsonCryptoException
      Decrypts the specified value.
      Parameters:
      value - the JSON value to be decrypted.
      Returns:
      the decrypted value.
      Throws:
      JsonCryptoException - if the decryptor fails to decrypt the value.