Class CredentialsUtils

java.lang.Object
io.jenkins.blueocean.credential.CredentialsUtils

public class CredentialsUtils extends Object
Credentials utility
Author:
Vivek Pandey
  • Constructor Details

    • CredentialsUtils

      public CredentialsUtils()
  • Method Details

    • createCredentialsInUserStore

      public static void createCredentialsInUserStore(@NonNull com.cloudbees.plugins.credentials.Credentials credential, @NonNull User user, @NonNull String domainName, @NonNull List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications) throws IOException
      Throws:
      IOException
    • updateCredentialsInUserStore

      public static void updateCredentialsInUserStore(@NonNull com.cloudbees.plugins.credentials.Credentials current, @NonNull com.cloudbees.plugins.credentials.Credentials replacement, @NonNull User user, @NonNull String domainName, @NonNull List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications) throws IOException
      Throws:
      IOException
    • findDomain

      @CheckForNull public static com.cloudbees.plugins.credentials.domains.Domain findDomain(@NonNull String credentialId, @NonNull User user)
    • getUserDomains

      @NonNull public static Iterable<com.cloudbees.plugins.credentials.domains.Domain> getUserDomains(@NonNull User user)
      Get all domains this user has access to
    • findCredential

      @CheckForNull public static <C extends com.cloudbees.plugins.credentials.Credentials> C findCredential(@NonNull String credentialId, @NonNull Class<C> type, @NonNull com.cloudbees.plugins.credentials.domains.DomainRequirement... domainRequirements)
    • generateDomainSpecifications

      public static List<com.cloudbees.plugins.credentials.domains.DomainSpecification> generateDomainSpecifications(@Nullable String uriStr)