Interface LoginContext


public interface LoginContext
What an AuthMethod can do during a login (no client token is sent).
  • Method Details

    • post

      CompletableFuture<AuthInfo> post(String path, Map<String,Object> body, String operation)
      Posts a login request; 400/401/403 raise AuthenticationException.
      Parameters:
      path - path below /v1/, already encoded (e.g. auth/approle/login)
      body - JSON body
      operation - operation name for errors
      Returns:
      a future with the auth block
    • lookup

      Looks up a token (auth/token/lookup-self with that token).
      Parameters:
      token - the token
      Returns:
      a future with the token properties