Package io.jenkins.plugins.ksm.notation
Class KsmNotation
java.lang.Object
io.jenkins.plugins.ksm.notation.KsmNotation
- Direct Known Subclasses:
KsmTestNotation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file) static KsmNotationItemCheck in envVar is a keeper notation and then attempt to parse it.com.keepersecurity.secretsManager.core.KeeperSecretsgetNotationSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options) com.keepersecurity.secretsManager.core.KeeperSecretsgetNotationSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options, List<String> uids) static booleanlooksLikeUid(String token) static KsmNotationItemParse a KsmSecret instance.static KsmNotationItemParse an environmental variable notation.static KsmNotationItemParse notation and keeper track the destinationvoidrun(KsmCredential credential, Map<String, KsmNotationItem> items)
-
Field Details
-
notationPrefix
- See Also:
-
-
Constructor Details
-
KsmNotation
public KsmNotation()
-
-
Method Details
-
looksLikeUid
-
find
public static KsmNotationItem find(String envVar, String notation, boolean allowFailure) throws Exception Check in envVar is a keeper notation and then attempt to parse it.- Parameters:
envVar- The name of the environmental variablenotation- The keeper notationallowFailure- Allow failure, don't throw exception, but log the error.- Returns:
- KsmNotationItem
- Throws:
Exception- The parse failed for this reason.
-
parse
Parse a KsmSecret instance.- Parameters:
item- An instance of KsmSecretallowFailure- Allow failure, don't throw exception, but log the error.- Returns:
- KsmNotationItem
- Throws:
Exception- The parse failed for this reason.
-
parse
public static KsmNotationItem parse(String envVar, String notation, boolean allowFailure) throws Exception Parse an environmental variable notation.- Parameters:
envVar- The name of the environmental variablenotation- The keeper notationallowFailure- Allow failure, don't throw exception, but log the error.- Returns:
- KsmNotationItem
- Throws:
Exception- The parse failed for this reason.
-
parse
public static KsmNotationItem parse(String destination, String envVar, String filePath, String notation, boolean allowFailure) throws Exception Parse notation and keeper track the destination- Parameters:
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.- Returns:
- KsmNotationItem
- Throws:
Exception- The parse failed for this reason.
-
getNotationSecrets
-
getNotationSecrets
public com.keepersecurity.secretsManager.core.KeeperSecrets getNotationSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options) -
downloadDataFile
public byte[] downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file) -
run
- Throws:
Exception
-