Class SecretManager
- java.lang.Object
-
- org.apache.synapse.securevault.secret.SecretManager
-
public class SecretManager extends Object
Entry point for manage secrets
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncryptedData(String alias)
Returns the encrypted value corresponding to the given alias namestatic SecretManager
getInstance()
String
getSecret(String alias)
Returns the secret corresponding to the given alias namevoid
init(Properties properties)
Initializes the Secret Manager by providing configuration propertiesboolean
isInitialized()
void
shoutDown()
-
-
-
Method Detail
-
getInstance
public static SecretManager getInstance()
-
init
public void init(Properties properties)
Initializes the Secret Manager by providing configuration properties- Parameters:
properties
- Configuration properties
-
getSecret
public String getSecret(String alias)
Returns the secret corresponding to the given alias name- Parameters:
alias
- The logical or alias name- Returns:
- If there is a secret , otherwise , alias itself
-
getEncryptedData
public String getEncryptedData(String alias)
Returns the encrypted value corresponding to the given alias name- Parameters:
alias
- The logical or alias name- Returns:
- If there is a encrypted value , otherwise , alias itself
-
isInitialized
public boolean isInitialized()
-
shoutDown
public void shoutDown()
-
-