Class BaseCredentials
- java.lang.Object
-
- com.cloudbees.plugins.credentials.BaseCredentials
-
- All Implemented Interfaces:
Credentials
,ExtensionPoint
,Describable<Credentials>
,Serializable
- Direct Known Subclasses:
BaseStandardCredentials
@ExportedBean public class BaseCredentials extends Object implements Credentials
Base class for Credentials.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseCredentials()
BaseCredentials(CredentialsScope scope)
Creates an instance with specific scope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialsDescriptor
getDescriptor()
CredentialsScope
getScope()
Gets the scope of the credential.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun
-
-
-
-
Constructor Detail
-
BaseCredentials
protected BaseCredentials()
-
BaseCredentials
public BaseCredentials(@CheckForNull CredentialsScope scope)
Creates an instance with specific scope.- Parameters:
scope
- the scope.
-
-
Method Detail
-
getScope
@CheckForNull public CredentialsScope getScope()
Gets the scope of the credential.- Specified by:
getScope
in interfaceCredentials
- Returns:
- the scope of the credential.
-
getDescriptor
@NonNull public CredentialsDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceCredentials
- Specified by:
getDescriptor
in interfaceDescribable<Credentials>
-
-