public class SecretManager extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getEncryptedData(String alias)
Returns the encrypted value corresponding to the given alias name
|
String |
getGlobalSecretProvider() |
static SecretManager |
getInstance() |
String |
getSecret(String alias)
Returns the secret corresponding to the given alias name
|
void |
init(Properties properties)
Initializes the Secret Manager by providing configuration properties
|
boolean |
isInitialized() |
String |
resolveSecret(String secretAnnotation)
Split the secret annotation from the delimiter provided and decides whether to use the legacy provider
or a novel provider to obtain the secret value of the requested alias.
|
void |
shoutDown() |
public static SecretManager getInstance()
public void init(Properties properties)
properties - Configuration propertiespublic String resolveSecret(String secretAnnotation)
secretAnnotation - String contains the alias, the provider type and the repository type.public String getSecret(String alias)
alias - The logical or alias namepublic String getEncryptedData(String alias)
alias - The logical or alias namepublic boolean isInitialized()
public void shoutDown()
public String getGlobalSecretProvider()
Copyright © 2020 WSO2. All rights reserved.