com.cloudbees.plugins.credentials
Class SystemCredentialsProvider

java.lang.Object
  extended by hudson.model.ManagementLink
      extended by com.cloudbees.plugins.credentials.SystemCredentialsProvider
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.Describable<SystemCredentialsProvider>, hudson.model.ModelObject, hudson.model.Saveable, org.kohsuke.stapler.StaplerProxy

@Extension
public class SystemCredentialsProvider
extends hudson.model.ManagementLink
implements hudson.model.Describable<SystemCredentialsProvider>, hudson.model.Saveable, org.kohsuke.stapler.StaplerProxy

The root store of credentials.


Nested Class Summary
static class SystemCredentialsProvider.DescriptorImpl
          Our management link descriptor.
static class SystemCredentialsProvider.ProviderImpl
          The CredentialsProvider that exposes credentials stored in getCredentials()
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.ManagementLink
LIST
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
SystemCredentialsProvider()
          Constructor.
 
Method Summary
 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,hudson.model.Descriptor<Credentials>> getCredentialDescriptors()
          Gets all the credentials descriptors.
 java.util.List<Credentials> getCredentials()
          Get all the credentials.
 java.lang.String getDescription()
          
 hudson.model.Descriptor<SystemCredentialsProvider> getDescriptor()
          
 java.lang.String getDisplayName()
          
 java.lang.String getIconFileName()
          
static SystemCredentialsProvider getInstance()
          Gets the singleton instance.
 java.lang.Object getTarget()
          Only sysadmin can access this page.
 java.lang.String getUrlName()
          
 void save()
          
 
Methods inherited from class hudson.model.ManagementLink
all
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemCredentialsProvider

public SystemCredentialsProvider()
Constructor.

Method Detail

getIconFileName

public java.lang.String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action
Specified by:
getIconFileName in class hudson.model.ManagementLink

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getDescription

public java.lang.String getDescription()

Overrides:
getDescription in class hudson.model.ManagementLink

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action
Specified by:
getUrlName in class hudson.model.ManagementLink

getCredentials

public java.util.List<Credentials> getCredentials()
Get all the credentials.

Returns:
all the credentials.

getCredentialDescriptors

public hudson.DescriptorExtensionList<Credentials,hudson.model.Descriptor<Credentials>> getCredentialDescriptors()
Gets all the credentials descriptors.

Returns:
all the credentials descriptors.

getDescriptor

public hudson.model.Descriptor<SystemCredentialsProvider> getDescriptor()

Specified by:
getDescriptor in interface hudson.model.Describable<SystemCredentialsProvider>

getTarget

public java.lang.Object getTarget()
Only sysadmin can access this page.

Specified by:
getTarget in interface org.kohsuke.stapler.StaplerProxy

doConfigSubmit

public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
                                                throws javax.servlet.ServletException,
                                                       java.io.IOException
Handles form submission.

Parameters:
req - the request.
Returns:
the response.
Throws:
javax.servlet.ServletException - if something goes wrong.
java.io.IOException - if something goes wrong.

save

public void save()
          throws java.io.IOException

Specified by:
save in interface hudson.model.Saveable
Throws:
java.io.IOException

getConfigFile

public static hudson.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.


Copyright © 2004-2012. All Rights Reserved.