public final class PropertyValueEncryptionUtils extends Object
Utility class to encrypt/decrypt values in properties files which could be encrypted.
A value is considered "encrypted" when it appears surrounded by ENC(...), like:
This class is meant for internal Jasypt use only.
Modifier and Type | Method and Description |
---|---|
static String |
decrypt(String encodedValue,
StringEncryptor encryptor) |
static String |
decrypt(String encodedValue,
TextEncryptor encryptor) |
static String |
encrypt(String decodedValue,
StringEncryptor encryptor) |
static String |
encrypt(String decodedValue,
TextEncryptor encryptor) |
static boolean |
isEncryptedValue(String value) |
public static boolean isEncryptedValue(String value)
public static String decrypt(String encodedValue, StringEncryptor encryptor)
public static String decrypt(String encodedValue, TextEncryptor encryptor)
public static String encrypt(String decodedValue, StringEncryptor encryptor)
public static String encrypt(String decodedValue, TextEncryptor encryptor)
Copyright © 2019 JBoss by Red Hat. All rights reserved.