Modifier and Type | Field and Description |
---|---|
static String |
VAULT_ENC_ALGORITHM |
Constructor and Description |
---|
VaultSession(String keystoreURL,
String keystorePassword,
String encryptionDirectory,
String salt,
int iterationCount)
Constructor to create VaultSession.
|
Modifier and Type | Method and Description |
---|---|
String |
addSecuredAttribute(String vaultBlock,
String attributeName,
char[] attributeValue)
Add secured attribute to specified vault block.
|
void |
addSecuredAttributeWithDisplay(String vaultBlock,
String attributeName,
char[] attributeValue)
Add secured attribute to specified vault block.
|
boolean |
checkSecuredAttribute(String vaultBlock,
String attributeName)
Check whether secured attribute is already set for given vault block and attribute name.
|
String |
getKeystoreMaskedPassword()
Method to get keystore masked password to use further in configuration.
|
void |
startVaultSession(String vaultAlias)
Start the vault with given alias.
|
protected void |
validateEncryptionDirectory() |
protected void |
validateIterationCount() |
protected void |
validateKeystorePassword() |
protected void |
validateKeystoreURL() |
protected void |
validateSalt() |
String |
vaultConfiguration()
Returns vault configuration string in user readable form.
|
void |
vaultConfigurationDisplay()
Display info about vault itself in form of AS7 configuration file.
|
public static final String VAULT_ENC_ALGORITHM
public VaultSession(String keystoreURL, String keystorePassword, String encryptionDirectory, String salt, int iterationCount) throws Exception
keystoreURL
- keystorePassword
- encryptionDirectory
- salt
- iterationCount
- Exception
protected void validateKeystorePassword() throws Exception
Exception
protected void validateEncryptionDirectory() throws Exception
Exception
public void startVaultSession(String vaultAlias) throws Exception
vaultAlias
- Exception
public String addSecuredAttribute(String vaultBlock, String attributeName, char[] attributeValue) throws Exception
vaultBlock
- attributeName
- attributeValue
- Exception
public void addSecuredAttributeWithDisplay(String vaultBlock, String attributeName, char[] attributeValue) throws Exception
vaultBlock
- attributeName
- attributeValue
- Exception
public boolean checkSecuredAttribute(String vaultBlock, String attributeName) throws Exception
vaultBlock
- attributeName
- Exception
public void vaultConfigurationDisplay()
public String vaultConfiguration()
public String getKeystoreMaskedPassword()
startVaultSession
method.Copyright © 2015 JBoss by Red Hat. All rights reserved.