Package org.openmetadata.service.fernet
Class Fernet
java.lang.Object
org.openmetadata.service.fernet.Fernet
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondecryptIfApplies(String value) Decrypts value without throwing an Exception in case it is not a Fernet encrypted valueencryptIfApplies(@NonNull String secret) Encrypt value without throwing an Exception in case it is not encryptedstatic Fernetbooleanstatic booleanisTokenized(String tokenized) voidsetFernetKey(String fernetKey) void
-
Field Details
-
FERNET_PREFIX
- See Also:
-
FERNET_NO_ENCRYPTION
- See Also:
-
-
Method Details
-
getInstance
-
setFernetKey
-
setFernetKey
-
isKeyDefined
public boolean isKeyDefined() -
encrypt
-
isTokenized
-
decrypt
-
decryptIfApplies
Decrypts value without throwing an Exception in case it is not a Fernet encrypted value -
encryptIfApplies
Encrypt value without throwing an Exception in case it is not encrypted
-