@Extension public class SystemCredentialsProvider extends hudson.model.ManagementLink implements hudson.model.Describable<SystemCredentialsProvider>, hudson.model.Saveable, org.kohsuke.stapler.StaplerProxy, org.jenkins.ui.icon.IconSpec
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 |
Constructor and Description |
---|
SystemCredentialsProvider()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
Handles form submission.
|
static hudson.XmlFile |
getConfigFile()
Gets the configuration file that this
CredentialsProvider uses to store its credentials. |
hudson.DescriptorExtensionList<Credentials,CredentialsDescriptor> |
getCredentialDescriptors()
Gets all the credentials descriptors.
|
List<Credentials> |
getCredentials()
Get all the (
Domain.global() ) credentials. |
String |
getDescription() |
hudson.model.Descriptor<SystemCredentialsProvider> |
getDescriptor() |
String |
getDisplayName() |
List<DomainCredentials> |
getDomainCredentials()
Get all the credentials.
|
Map<Domain,List<Credentials>> |
getDomainCredentialsMap()
Get all the credentials.
|
String |
getIconClassName() |
String |
getIconFileName() |
static SystemCredentialsProvider |
getInstance()
Gets the singleton instance.
|
hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> |
getSpecificationDescriptors()
Gets all the
DomainSpecification descriptors. |
Object |
getTarget()
Only sysadmin can access this page.
|
String |
getUrlName() |
void |
save() |
void |
setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
Set all the credentials.
|
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
getIconFileName
in class hudson.model.ManagementLink
public String getIconClassName()
getIconClassName
in interface org.jenkins.ui.icon.IconSpec
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getDescription()
getDescription
in class hudson.model.ManagementLink
public String getUrlName()
getUrlName
in interface hudson.model.Action
getUrlName
in class hudson.model.ManagementLink
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 hudson.DescriptorExtensionList<Credentials,CredentialsDescriptor> getCredentialDescriptors()
public hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> getSpecificationDescriptors()
DomainSpecification
descriptors.DomainSpecification
descriptors.public hudson.model.Descriptor<SystemCredentialsProvider> getDescriptor()
getDescriptor
in interface hudson.model.Describable<SystemCredentialsProvider>
public Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, IOException
req
- the request.javax.servlet.ServletException
- if something goes wrong.IOException
- if something goes wrong.public void save() throws IOException
save
in interface hudson.model.Saveable
IOException
public static hudson.XmlFile getConfigFile()
CredentialsProvider
uses to store its credentials.CredentialsProvider
uses to store its credentials.public static SystemCredentialsProvider getInstance()
Copyright © 2016. All rights reserved.