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
Modifier and TypeClassDescriptionstatic final class
Our management link descriptor.static class
static class
OurCredentialsStore
.static class
Expose the store. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure the credentials are loaded using SYSTEM during the startup and migration occurs as expectedstatic XmlFile
Gets the configuration file that thisCredentialsProvider
uses to store its credentials.Get all the (Domain.global()
) credentials.Get all the credentials.Get all the credentials.static SystemCredentialsProvider
Gets the singleton instance.void
save()
void
setDomainCredentialsMap
(Map<Domain, List<Credentials>> domainCredentialsMap) Set all the credentials.Methods inherited from class hudson.model.AbstractDescribableImpl
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 thisCredentialsProvider
uses to store its credentials.- Returns:
- the configuration file that this
CredentialsProvider
uses 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:
save
in interfaceSaveable
- Throws:
IOException
-