Class PersonalAccessTokenImpl
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
io.jenkins.plugins.gitlabserverconfig.credentials.PersonalAccessTokenImpl
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials,com.cloudbees.plugins.credentials.common.StandardCredentials,com.cloudbees.plugins.credentials.Credentials,ExtensionPoint,Describable<com.cloudbees.plugins.credentials.Credentials>,PersonalAccessToken,Serializable
public class PersonalAccessTokenImpl
extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
implements PersonalAccessToken
Default implementation of
PersonalAccessToken for use by Jenkins CredentialsProvider instances that store Secret locally.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor.Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider -
Constructor Summary
ConstructorsConstructorDescriptionPersonalAccessTokenImpl(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String token) Constructor. -
Method Summary
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescription
-
Constructor Details
-
PersonalAccessTokenImpl
@DataBoundConstructor public PersonalAccessTokenImpl(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @NonNull String token) Constructor.- Parameters:
scope- the credentials scope.id- the credentials id.description- the description of the token.token- the token itself (will be passed throughSecret.fromString(String))
-
-
Method Details
-
getToken
Returns the token.- Specified by:
getTokenin interfacePersonalAccessToken- Returns:
- the token.
-