Class PersonalAccessTokenImpl

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PersonalAccessTokenImpl.DescriptorImpl
      Our descriptor.
      • Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

        com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
      • Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

        com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
      • Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

        com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Secret getToken()
      Returns the token.
      • Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

        equals, getDescription, getId, hashCode
      • Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

        getDescriptor, getScope
      • Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

        forRun, getDescriptor, getScope
      • Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

        getId
      • Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

        getDescription
    • Constructor Detail

      • 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 through Secret.fromString(String))