Class GiteaAuthTokenSource

java.lang.Object
jenkins.authentication.tokens.api.AuthenticationTokenSource<GiteaAuthToken,PersonalAccessToken>
org.jenkinsci.plugin.gitea.authentication.GiteaAuthTokenSource
All Implemented Interfaces:
ExtensionPoint

@Extension public class GiteaAuthTokenSource extends jenkins.authentication.tokens.api.AuthenticationTokenSource<GiteaAuthToken,PersonalAccessToken>
Converts PersonalAccessToken to GiteaAuthToken authentication.
  • Constructor Details

    • GiteaAuthTokenSource

      public GiteaAuthTokenSource()
      Constructor.
  • Method Details

    • convert

      @NonNull public GiteaAuthToken convert(@NonNull PersonalAccessToken credential) throws jenkins.authentication.tokens.api.AuthenticationTokenException
      Specified by:
      convert in class jenkins.authentication.tokens.api.AuthenticationTokenSource<GiteaAuthToken,PersonalAccessToken>
      Throws:
      jenkins.authentication.tokens.api.AuthenticationTokenException