public class KsmNotation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
notationPrefix |
| Constructor and Description |
|---|
KsmNotation() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file) |
static KsmNotationItem |
find(String envVar,
String notation,
boolean allowFailure)
Check in envVar is a keeper notation and then attempt to parse it.
|
com.keepersecurity.secretsManager.core.KeeperSecrets |
getSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options,
List<String> uids) |
static KsmNotationItem |
parse(KsmSecret item,
boolean allowFailure)
Parse a KsmSecret instance.
|
static KsmNotationItem |
parse(String envVar,
String notation,
boolean allowFailure)
Parse an environmental variable notation.
|
static KsmNotationItem |
parse(String destination,
String envVar,
String filePath,
String notation,
boolean allowFailure)
Parse notation and keeper track the destination
|
void |
run(KsmCredential credential,
Map<String,KsmNotationItem> items) |
public static final String notationPrefix
public static KsmNotationItem find(String envVar, String notation, boolean allowFailure) throws Exception
envVar - The name of the environmental variablenotation - The keeper notationallowFailure - Allow failure, don't throw exception, but log the error.Exception - The parse failed for this reason.public static KsmNotationItem parse(KsmSecret item, boolean allowFailure) throws Exception
item - An instance of KsmSecretallowFailure - Allow failure, don't throw exception, but log the error.Exception - The parse failed for this reason.public static KsmNotationItem parse(String envVar, String notation, boolean allowFailure) throws Exception
envVar - The name of the environmental variablenotation - The keeper notationallowFailure - Allow failure, don't throw exception, but log the error.Exception - The parse failed for this reason.public static KsmNotationItem parse(String destination, String envVar, String filePath, String notation, boolean allowFailure) throws Exception
destination - Flag indicating in the destination is an environmental var or file path.envVar - The name of the environmental variablefilePath - Path to where the secret should be stored on disk.notation - The keeper notationallowFailure - Allow failure, don't throw exception, but log the error.Exception - The parse failed for this reason.public com.keepersecurity.secretsManager.core.KeeperSecrets getSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options,
List<String> uids)
public byte[] downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file)
public void run(KsmCredential credential, Map<String,KsmNotationItem> items)
Copyright © 2016–2021. All rights reserved.