Class AccessToken

java.lang.Object
com.polarion.platform.security.login.AccessToken
All Implemented Interfaces:
ILoginAuthenticator

public final class AccessToken extends Object implements ILoginAuthenticator
Authenticator type to use with personal access token
Since:
3.22.1
  • Field Details

  • Constructor Details

    • AccessToken

      public AccessToken()
  • Method Details

    • id

      @NotNull public static AccessToken id()
      Create a typed authenticator ID.
      Returns:
      typed authenticator ID.
    • getId

      @NotNull public String getId()
      Description copied from interface: ILoginAuthenticator
      Get an authenticator ID.
      Specified by:
      getId in interface ILoginAuthenticator
      Returns:
      authenticator ID.
    • token

      @NotNull public static IToken<AccessToken> token(@NotNull String token)
      Prepare and create a typed personal access token instance.
      Parameters:
      token - raw personal access token as it is received.
      Returns:
      typed and prepared token instance.