Class AkeylessSyncedClient

java.lang.Object
io.jenkins.plugins.akeyless.synced.client.AkeylessSyncedClient

public class AkeylessSyncedClient extends Object
  • Constructor Details

    • AkeylessSyncedClient

      public AkeylessSyncedClient(@Nonnull String akeylessUrl, @Nullable String accessId, @Nonnull SyncedAuthMethod authMethod)
  • Method Details

    • getToken

      public String getToken() throws io.akeyless.client.ApiException
      Throws:
      io.akeyless.client.ApiException
    • getSecretValue

      @Nonnull public AkeylessSyncedClient.GetSecretValueResult getSecretValue(String name) throws io.akeyless.client.ApiException
      Resolves the secret value: describe-item first, 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), using list-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

      @Nonnull public Map<String,String> getItemTags(@Nonnull String itemPath)
      Reads item tags from Akeyless via describe-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

      public static String normalizeItemPath(String name)
      Normalizes to a path with a leading / for Akeyless APIs.