@Extension public class SystemCredentialsProvider extends AbstractDescribableImpl<SystemCredentialsProvider> implements Saveable
Modifier and Type | Class and Description |
---|---|
static class |
SystemCredentialsProvider.DescriptorImpl
Our management link descriptor.
|
static class |
SystemCredentialsProvider.ProviderImpl |
static class |
SystemCredentialsProvider.StoreImpl
Our
CredentialsStore . |
static class |
SystemCredentialsProvider.UserFacingAction
Expose the store.
|
Constructor and Description |
---|
SystemCredentialsProvider()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
forceLoadDuringStartup()
Ensure the credentials are loaded using SYSTEM during the startup and migration occurs as expected
|
static XmlFile |
getConfigFile()
Gets the configuration file that this
CredentialsProvider uses to store its credentials. |
List<Credentials> |
getCredentials()
Get all the (
Domain.global() ) credentials. |
List<DomainCredentials> |
getDomainCredentials()
Get all the credentials.
|
Map<Domain,List<Credentials>> |
getDomainCredentialsMap()
Get all the credentials.
|
static SystemCredentialsProvider |
getInstance()
Gets the singleton instance.
|
void |
save() |
void |
setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
Set all the credentials.
|
getDescriptor
@Initializer(after=JOB_LOADED) public static void forceLoadDuringStartup()
public static XmlFile getConfigFile()
CredentialsProvider
uses to store its credentials.CredentialsProvider
uses to store its credentials.public static SystemCredentialsProvider getInstance()
public List<Credentials> getCredentials()
Domain.global()
) credentials.Domain.global()
) credentials.public List<DomainCredentials> getDomainCredentials()
@NonNull public Map<Domain,List<Credentials>> getDomainCredentialsMap()
public void setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
domainCredentialsMap
- all the credentials.public void save() throws IOException
save
in interface Saveable
IOException
Copyright © 2016–2021. All rights reserved.