Interface TokenAuthenticationClient

All Superinterfaces:
TokenVerificationClient
All Known Subinterfaces:
AuthenticationClient, PublicKeyAuthenticationClient, TokenFactoryFactory
All Known Implementing Classes:
AuthenticationClientManager, AuthenticationClientManager.Null, AuthenticationClientManagerBase, GrpcAuthenticationClientManager

public interface TokenAuthenticationClient extends TokenVerificationClient
The basic subset of authentication functionality for client that don't need full blow AuthenticationClient. In particular, TokenFactoryFactory implements only this interface.
  • Method Details

    • createToken

      AuthToken createToken(String service)
      Create a new token for the specified service
      Returns:
      A new auth token from the server
      Throws:
      TokenCreationException - if the server was unreachable
      AuthException - if any other authentication problem occurred
    • createToken

      default AuthToken createToken(DhService service)
      Create a new token for the specified service
      Returns:
      A new auth token from the server
      Throws:
      TokenCreationException - if the server was unreachable
      AuthException - if any other authentication problem occurred
    • createTokenForUser

      AuthToken createTokenForUser(String service, String operateAs)
      Create a new token for the specified service to operate as the specified usr
      Throws:
      TokenCreationException - if the server was unreachable
      AuthException - if any other authentication problem occurred
    • createTokenForUser

      default AuthToken createTokenForUser(DhService service, String operateAs)
      Create a new token for the specified service to operate as the specified usr
      Throws:
      TokenCreationException - if the server was unreachable
      AuthException - if any other authentication problem occurred