Class AkeylessSyncedClient
java.lang.Object
io.jenkins.plugins.akeyless.synced.client.AkeylessSyncedClient
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAkeylessSyncedClient(String akeylessUrl, String accessId, SyncedAuthMethod authMethod) -
Method Summary
Modifier and TypeMethodDescriptiongetItemTags(String itemPath) Reads item tags from Akeyless viadescribe-item(same keys as AWS Secrets Manager plugin:jenkins:credentials:type,jenkins:credentials:username, etc.).getSecretValue(String name) Resolves the secret value:describe-itemfirst, then the fetch API that matches the item type (static, dynamic, rotated, certificate).getToken()listSecretItemPathsRecursive(String folderPath) Lists full item paths under a folder (recursive), usinglist-items.static StringnormalizeItemPath(String name) Normalizes to a path with a leading/for Akeyless APIs.
-
Constructor Details
-
AkeylessSyncedClient
public AkeylessSyncedClient(@Nonnull String akeylessUrl, @Nullable String accessId, @Nonnull SyncedAuthMethod authMethod)
-
-
Method Details
-
getToken
- Throws:
io.akeyless.client.ApiException
-
getSecretValue
@Nonnull public AkeylessSyncedClient.GetSecretValueResult getSecretValue(String name) throws io.akeyless.client.ApiException Resolves the secret value:describe-itemfirst, then the fetch API that matches the item type (static, dynamic, rotated, certificate). Missing items surface as failure (typically HTTP 404 from describe).- Throws:
io.akeyless.client.ApiException
-
listSecretItemPathsRecursive
@Nonnull public List<String> listSecretItemPathsRecursive(@Nonnull String folderPath) throws io.akeyless.client.ApiException Lists full item paths under a folder (recursive), usinglist-items. Used when only a folder path is configured so Jenkins can expose credential IDs without a manual name list.- Throws:
io.akeyless.client.ApiException
-
getItemTags
Reads item tags from Akeyless viadescribe-item(same keys as AWS Secrets Manager plugin:jenkins:credentials:type,jenkins:credentials:username, etc.). On failure returns an empty map so callers can fall back to defaults. -
normalizeItemPath
Normalizes to a path with a leading/for Akeyless APIs.
-