Package org.forgerock.json.crypto
Interface JsonEncryptor
- All Known Implementing Classes:
SimpleEncryptor
public interface JsonEncryptor
Encrypts a JSON value.
-
Method Summary
-
Method Details
-
getType
String getType()Returns the type of cryptographic representation that this JSON encryptor supports. Expressed in thetype
property of aJsonCrypto
object.- Returns:
- The type.
-
encrypt
Encrypts the specified value.- Parameters:
value
- the JSON value to be encrypted.- Returns:
- the encrypted value.
- Throws:
JsonCryptoException
- if the encryptor fails to encrypt the value.
-