public class RuntimeVaultReader extends AbstractVaultReader
Constructor and Description |
---|
RuntimeVaultReader()
This constructor should remain protected to keep the vault as invisible
as possible, but it needs to be exposed for service plug-ability.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createVault(String fqn,
Map<String,Object> options)
Creates and initialises a vault, loading it from the PicketLink module
|
protected void |
createVault(String fqn,
String module,
Map<String,Object> options) |
protected void |
destroyVault() |
boolean |
isVaultFormat(String str) |
String |
retrieveFromVault(String password)
Unmasks vaulted data.
|
public RuntimeVaultReader()
protected void createVault(String fqn, Map<String,Object> options) throws VaultReaderException
AbstractVaultReader
createVault
in class AbstractVaultReader
fqn
- the name of the vault class, may be nulloptions
- the vault optionsVaultReaderException
protected void createVault(String fqn, String module, Map<String,Object> options) throws VaultReaderException
createVault
in class AbstractVaultReader
fqn
- the name of the vault class, may be nullmodule
- the module to use to load the vaultoptions
- the vault optionsVaultReaderException
protected void destroyVault()
destroyVault
in class AbstractVaultReader
public String retrieveFromVault(String password) throws SecurityException
VaultReader
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
password
- the masked data, may be null
SecurityException
public boolean isVaultFormat(String str)
Copyright © 2023 JBoss by Red Hat. All rights reserved.