Class OAuth1Authenticator


  • public class OAuth1Authenticator
    extends Object
    Authenticates a request based on provided OAuth1 fields. Tested by the
    • Method Detail

      • authenticate

        @CheckForNull
        public User authenticate​(javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp)
                          throws AuthenticationFailedException
        Authenticate the request.
        Parameters:
        req - request to validate
        resp - response to write errors etc to in case of failure.
        Returns:
        If the request is successful the authenticated user is returned. If it is not a valid * OAuth1 request null is returned.
        Throws:
        AuthenticationFailedException - Thrown to indicate that Authentication failed and the request should not be allowed to proceed