Package | Description |
---|---|
org.wso2.carbon.secvault | |
org.wso2.carbon.secvault.cipher | |
org.wso2.carbon.secvault.reader | |
org.wso2.carbon.secvault.repository |
Modifier and Type | Method and Description |
---|---|
byte[] |
SecretRepository.decrypt(byte[] cipherText)
An implementation of this method should provide the relevant decryption logic.
|
byte[] |
SecureVault.decrypt(byte[] cipherText)
An implementation of this method should delegate the decryption to the underlying
SecretRepository
and get the cipherText decrypted. |
byte[] |
SecretRepository.encrypt(byte[] plainText)
An implementation of this method should provide the relevant encryption logic.
|
byte[] |
SecureVault.encrypt(byte[] plainText)
An implementation of this method should delegate the encryption to the underlying
SecretRepository
and get the plainText encrypted. |
static MasterKey |
SecureVaultUtils.getSecret(List<MasterKey> masterKeys,
String secretName) |
static Optional<SecureVault> |
SecureVaultFactory.getSecureVault(Path secureVaultConfigPath)
Initializes and returns the secure vault by initialising master key reader and secret repository and loading
secrets to secret repository.
|
static Optional<SecureVaultConfiguration> |
SecureVaultUtils.getSecureVaultConfig(Path secureVaultConfigPath)
Initialize secure vault configuration provider.
|
void |
MasterKeyReader.init(MasterKeyReaderConfiguration masterKeyReaderConfiguration)
An implementation of this method should initialize the MasterKeyReader, so that it could perform the
readMasterKeys . |
void |
SecretRepository.init(SecretRepositoryConfiguration secretRepositoryConfiguration,
MasterKeyReader masterKeyReader)
This method will be called with a
SecretRepositoryConfiguration , a MasterKeyReader . |
static Properties |
SecureVaultUtils.loadSecretFile(Path secretsFilePath) |
void |
SecretRepository.loadSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration)
An implementation of this method should load the secrets from underlying secret repository.
|
void |
SecretRepository.persistSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration)
An implementation of this method should persist the secrets to the underlying secret repository.
|
void |
MasterKeyReader.readMasterKeys(List<MasterKey> masterKeys)
An implementation of this method should populate the master key value of all the
MasterKey s
provided in the masterKeys list. |
char[] |
SecureVault.resolve(String alias)
Resolves the given alias in to a plain text password.
|
static String |
SecureVaultUtils.resolveFileToString(Path configFilePath)
This method reads the configurations content from the filepath.
|
static String |
SecureVaultUtils.substituteVariables(Matcher matcher,
Function<String,String> function)
This method replaces the placeholders with value provided by the given Function.
|
static String |
SecureVaultUtils.substituteVariables(String value)
This method replaces place holders in the given String with proper values.
|
static void |
SecureVaultUtils.updateSecretFile(Path secretsFilePath,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
byte[] |
JKSBasedCipherProvider.decrypt(byte[] cipherText) |
byte[] |
JKSBasedCipherProvider.encrypt(byte[] plainText) |
void |
JKSBasedCipherProvider.init(SecretRepositoryConfiguration secretRepositoryConfiguration,
List<MasterKey> masterKeys) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultMasterKeyReader.init(MasterKeyReaderConfiguration masterKeyReaderConfiguration) |
void |
DefaultMasterKeyReader.readMasterKeys(List<MasterKey> masterKeys) |
Modifier and Type | Method and Description |
---|---|
byte[] |
DefaultSecretRepository.decrypt(byte[] cipherText) |
byte[] |
DefaultSecretRepository.encrypt(byte[] plainText) |
void |
DefaultSecretRepository.init(SecretRepositoryConfiguration secretRepositoryConfiguration,
MasterKeyReader masterKeyReader) |
void |
AbstractSecretRepository.loadSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration) |
void |
AbstractSecretRepository.persistSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration) |
Copyright © 2017 WSO2. All rights reserved.