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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOur management link descriptor.static classstatic classOurCredentialsStore.static classExpose the store. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsure the credentials are loaded using SYSTEM during the startup and migration occurs as expectedstatic XmlFileGets the configuration file that thisCredentialsProvideruses to store its credentials.Get all the (Domain.global()) credentials.Get all the credentials.Get all the credentials.static SystemCredentialsProviderGets the singleton instance.voidsave()voidsetDomainCredentialsMap(Map<Domain, List<Credentials>> domainCredentialsMap) Set all the credentials.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
SystemCredentialsProvider
public SystemCredentialsProvider()Constructor.
-
-
Method Details
-
forceLoadDuringStartup
Ensure the credentials are loaded using SYSTEM during the startup and migration occurs as expected -
getConfigFile
Gets the configuration file that thisCredentialsProvideruses to store its credentials.- Returns:
- the configuration file that this
CredentialsProvideruses to store its credentials.
-
getInstance
Gets the singleton instance.- Returns:
- the singleton instance.
-
getCredentials
Get all the (Domain.global()) credentials.- Returns:
- all the (
Domain.global()) credentials.
-
getDomainCredentials
Get all the credentials.- Returns:
- all the credentials.
- Since:
- 1.5
-
getDomainCredentialsMap
Get all the credentials.- Returns:
- all the credentials.
- Since:
- 1.5
-
setDomainCredentialsMap
Set all the credentials.- Parameters:
domainCredentialsMap- all the credentials.- Since:
- 1.5
-
save
- Specified by:
savein interfaceSaveable- Throws:
IOException
-