Class SystemCredentialsProvider

java.lang.Object
hudson.model.AbstractDescribableImpl<SystemCredentialsProvider>
com.cloudbees.plugins.credentials.SystemCredentialsProvider
All Implemented Interfaces:
Describable<SystemCredentialsProvider>, Saveable

@Extension public class SystemCredentialsProvider extends AbstractDescribableImpl<SystemCredentialsProvider> implements Saveable
The root store of credentials.
  • Constructor Details

    • SystemCredentialsProvider

      public SystemCredentialsProvider()
      Constructor.
  • Method Details

    • forceLoadDuringStartup

      @Initializer(after=JOB_LOADED) public static void forceLoadDuringStartup()
      Ensure the credentials are loaded using SYSTEM during the startup and migration occurs as expected
    • getConfigFile

      public static XmlFile getConfigFile()
      Gets the configuration file that this CredentialsProvider uses to store its credentials.
      Returns:
      the configuration file that this CredentialsProvider uses to store its credentials.
    • getInstance

      public static SystemCredentialsProvider getInstance()
      Gets the singleton instance.
      Returns:
      the singleton instance.
    • getCredentials

      public List<Credentials> getCredentials()
      Get all the (Domain.global()) credentials.
      Returns:
      all the (Domain.global()) credentials.
    • getDomainCredentials

      public List<DomainCredentials> getDomainCredentials()
      Get all the credentials.
      Returns:
      all the credentials.
      Since:
      1.5
    • getDomainCredentialsMap

      @NonNull public Map<Domain,List<Credentials>> getDomainCredentialsMap()
      Get all the credentials.
      Returns:
      all the credentials.
      Since:
      1.5
    • setDomainCredentialsMap

      public void setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
      Set all the credentials.
      Parameters:
      domainCredentialsMap - all the credentials.
      Since:
      1.5
    • save

      public void save() throws IOException
      Specified by:
      save in interface Saveable
      Throws:
      IOException