Interface TokenFactoryFactory

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

public interface TokenFactoryFactory extends TokenAuthenticationClient
Implements a three-way handshake where clients request a transient, ephemeral token from an authentication server where they are authenticated, and then forward that token to another service as credentials. The other service is expected to validate the token back to the authentication server to confirm its authenticity.
  • Method Details

    • getTokenFactory

      TokenFactoryFactory.TokenFactory getTokenFactory(String service)
      Create a token factory for the provided service
      Parameters:
      service - the service
      Returns:
      the created TokenFactory
    • getTokenFactory

      default TokenFactoryFactory.TokenFactory getTokenFactory(DhService service)
      Create a token factory for the provided service
      Parameters:
      service - the service
      Returns:
      the created TokenFactory
    • getTokenFactory

      TokenFactoryFactory.TokenFactory getTokenFactory(String service, String user)
      Create a token factory for the provided service and user
      Parameters:
      service - the service
      user - the user
      Returns:
      the created TokenFactory
    • getTokenFactory

      default TokenFactoryFactory.TokenFactory getTokenFactory(DhService service, String user)
      Create a token factory for the provided service and user
      Parameters:
      service - the service
      user - the user
      Returns:
      the created TokenFactory
    • close

      default void close()
      Close the token factory.