Interface LocalAuthenticationServer

All Known Implementing Classes:
AuthenticationServer, AuthenticationServerBase, GrpcAuthenticationServer

public interface LocalAuthenticationServer
Methods required to implement In-process TokenFactoryFactory functionality. This can be useful if/when combining services in one main, and for testing.
  • Method Details

    • addLocalClient

      boolean addLocalClient(LocalAuthenticationClientManager localClient, String authenticatedUser, String effectiveUser)

      Inserts the localClient into this authentication server's state map.

      The client is authenticated as the provided user.

      Parameters:
      localClient - the local client state
      authenticatedUser - the authenticated user for the client state.
      effectiveUser - the effective user for the client state.
      Returns:
      true (authentication cannot fail)
    • verifyChallengeLocal

      boolean verifyChallengeLocal(LocalAuthenticationClientManager localClient, PublicKey publicKey, byte[] response, String userToAuthenticate, String effectiveUser)
    • isTokenValid

      boolean isTokenValid(String verifyingService, AuthToken tokenToVerify)
    • createTokenLocal

      AuthToken createTokenLocal(LocalAuthenticationClientManager client, String service)
    • createTokenForUserLocal

      AuthToken createTokenForUserLocal(LocalAuthenticationClientManager client, String service, String operateAs)
      Creates a token for the provided service and user.
      Parameters:
      client - the client to create a token for
      service - the service to create a token for
      operateAs - the effective user to create a token for
      Returns:
      the newly created token
    • getOriginHost

      InetAddress getOriginHost()
    • getNonce

      byte[] getNonce(Object client)