Interface TokenAuthenticator


  • public interface TokenAuthenticator
    TokenAuthenticator is used to authenticate a user sending servlet requests to a service via token. It produces a TokenAuthenticationResult. The result contains the necessary information to perform container specific authentication.
    See JettyTokenAuthenticator in the java-security-test library on how this is used with jetty to perform authentication.
    • Method Detail

      • validateRequest

        TokenAuthenticationResult validateRequest​(javax.servlet.ServletRequest request,
                                                  javax.servlet.ServletResponse response)
        Performs the authentication for the given request.
        Parameters:
        request - servlet request.
        response - servlet response.
        Returns:
        a TokenAuthenticationResult.