public class SecurityUtils extends Object
Constructor and Description |
---|
SecurityUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
decryptHexEncodedValue(String value,
String resourceLocation,
com.beust.jcommander.internal.Console console)
Method to decrypt a value
|
static String |
encryptAndHexEncodeValue(String value,
String resourceLocation,
com.beust.jcommander.internal.Console console)
Method to encrypt and hex-encode a string value
|
static File |
getFormattedTokenKeyFileForConfig(File configFile)
Utilty method to format the file path for the token key file associated with a config file
|
public static String decryptHexEncodedValue(String value, String resourceLocation, com.beust.jcommander.internal.Console console) throws Exception
value
- Value to decrypt. Should be wrapped with ENC{}resourceLocation
- Optional value to specify the location of the encryption service
resource locationException
public static String encryptAndHexEncodeValue(String value, String resourceLocation, com.beust.jcommander.internal.Console console) throws Exception
value
- value to encrypt and hex-encoderesourceLocation
- resource token to use for encrypting the valueException
public static File getFormattedTokenKeyFileForConfig(File configFile)
configFile
- Location of config file that token key file is associated withCopyright © 2013–2022. All rights reserved.