public class SecretsVault extends Object
Constructor and Description |
---|
SecretsVault(String appPath,
String passPhrase) |
Modifier and Type | Method and Description |
---|---|
SecretsVault |
add(String name,
String value) |
HashMap<String,String> |
decryptAndParse(String encrypted) |
String |
dumpAndEncrypt() |
static Map<String,String> |
getAppSecrets() |
String |
getSecret(String name) |
List<String> |
getSecretNames() |
HashMap<String,String> |
getSecrets() |
static void |
init(String theAppPath,
SecretsSettings theSecretsSettings) |
static Map<String,String> |
loadIfExists(String appPath) |
void |
save() |
String |
secretsToJson() |
SecretsVault |
update(String name,
String value) |
public SecretsVault(String appPath, String passPhrase)
public static Map<String,String> getAppSecrets()
public static void init(String theAppPath, SecretsSettings theSecretsSettings)
public static Map<String,String> loadIfExists(String appPath)
public String secretsToJson()
public HashMap<String,String> getSecrets()
public List<String> getSecretNames()
public SecretsVault add(String name, String value)
public SecretsVault update(String name, String value)
public HashMap<String,String> decryptAndParse(String encrypted)
public String dumpAndEncrypt()
public void save()
Copyright © 2016. All rights reserved.