Class BaseStandardCredentials
- java.lang.Object
-
- com.cloudbees.plugins.credentials.BaseCredentials
-
- com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
-
- All Implemented Interfaces:
IdCredentials
,StandardCredentials
,Credentials
,ExtensionPoint
,Describable<Credentials>
,Serializable
- Direct Known Subclasses:
CertificateCredentialsImpl
,UsernamePasswordCredentialsImpl
@ExportedBean public abstract class BaseStandardCredentials extends BaseCredentials implements StandardCredentials
Base class forStandardCredentials
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BaseStandardCredentials.BaseStandardCredentialsDescriptor
Descriptor to use for subclasses ofBaseStandardCredentials
.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
IdCredentials.Helpers
-
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
StandardCredentials.NameProvider
-
-
Constructor Summary
Constructors Constructor Description BaseStandardCredentials(CredentialsScope scope, String id, String description)
Constructor.BaseStandardCredentials(String id, String description)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
Returns the Description.String
getId()
Returns the ID.int
hashCode()
-
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
-
-
-
Constructor Detail
-
BaseStandardCredentials
public BaseStandardCredentials(@CheckForNull String id, @CheckForNull String description)
Constructor.- Parameters:
id
- the id.description
- the description.
-
BaseStandardCredentials
public BaseStandardCredentials(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description)
Constructor.- Parameters:
scope
- the scope.id
- the id.description
- the description.
-
-
Method Detail
-
getDescription
@NonNull @Exported public String getDescription()
Returns the Description.- Specified by:
getDescription
in interfaceStandardCredentials
- Returns:
- the Description.
-
getId
@NonNull @Exported public String getId()
Returns the ID.- Specified by:
getId
in interfaceIdCredentials
- Returns:
- the ID.
-
-