public class SecurityVaultUtil extends Object
SecurityVault
Modifier and Type | Field and Description |
---|---|
static String |
VAULT_PREFIX |
Constructor and Description |
---|
SecurityVaultUtil() |
Modifier and Type | Method and Description |
---|---|
static char[] |
getValue(char[] chars)
Get the value from the vault
|
static char[] |
getValue(String vaultString)
Given the vault formatted string, retrieve the attribute value from the
vault
|
static String |
getValueAsString(String vaultString) |
static boolean |
isVaultFormat(char[] chars)
Check whether the string has the format of the vault
|
static boolean |
isVaultFormat(String str)
Check whether the string has the format of the vault
|
public static final String VAULT_PREFIX
public static boolean isVaultFormat(char[] chars)
chars
- public static boolean isVaultFormat(String str)
str
- public static char[] getValue(String vaultString) throws SecurityVaultException
Given the vault formatted string, retrieve the attribute value from the vault
Note: the vault formatted string will be of the form VAULT::vault_block::attribute_name::sharedKey
Vault Block acts as the unique id of a block such as "messaging", "security" etc Attribute Name is the name of the attribute whose value we are preserving Shared Key is the key generated by the off line vault during storage of the attribute value
vaultString
- SecurityVaultException
public static String getValueAsString(String vaultString) throws SecurityVaultException
vaultString
- SecurityVaultException
getValue(String)
public static char[] getValue(char[] chars) throws SecurityVaultException
chars
- vaultified set of charactersSecurityVaultException
Copyright © 2017 JBoss by Red Hat. All rights reserved.