Package io.jenkins.plugins.ksm.notation
Class KsmTestNotation
java.lang.Object
io.jenkins.plugins.ksm.notation.KsmNotation
io.jenkins.plugins.ksm.notation.KsmTestNotation
-
Field Summary
Fields inherited from class io.jenkins.plugins.ksm.notation.KsmNotation
notationPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTestData(String jsonString) This method will add test data.byte[]downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file) 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 booleanvoidstatic voidvoidwriteJsonData(String jsonString) Methods inherited from class io.jenkins.plugins.ksm.notation.KsmNotation
find, looksLikeUid, parse, parse, parse, run
-
Constructor Details
-
KsmTestNotation
public KsmTestNotation()
-
-
Method Details
-
addTestData
This method will add test data. It takes a JSON structure which it will turn into KeeperSecrets. To be perfectly honest, this is just overkill for one project. Right now it's limited to the Login and Password fields, but can be expanded. { "secrets": [ { "uid": "XXXXX", "title": "My Title", "type": "login", "note": "Some note", "fields": [ { "label": "Field Label", "fieldType": "Login", "values": ["MY_LOGIN"] } ], "files": [ { "name": "File name and title", "data": "BASE64" } ] } ] }- Parameters:
jsonString- The JSON string
-
getNotationSecrets
public com.keepersecurity.secretsManager.core.KeeperSecrets getNotationSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options, List<String> uids) - Overrides:
getNotationSecretsin classKsmNotation
-
getNotationSecrets
public com.keepersecurity.secretsManager.core.KeeperSecrets getNotationSecrets(com.keepersecurity.secretsManager.core.SecretsManagerOptions options) - Overrides:
getNotationSecretsin classKsmNotation
-
downloadDataFile
public byte[] downloadDataFile(com.keepersecurity.secretsManager.core.KeeperFile file) - Overrides:
downloadDataFilein classKsmNotation
-
writeJsonData
-
hasDataFile
public static boolean hasDataFile() -
loadJsonData
- Throws:
IOException
-
removeJsonData
public static void removeJsonData()
-