Class BasicAuthenticator

    • Constructor Detail

      • BasicAuthenticator

        public BasicAuthenticator()
    • Method Detail

      • getCharset

        public java.lang.String getCharset()
      • setCharset

        public void setCharset​(java.lang.String charsetString)
      • getTrimCredentials

        public boolean getTrimCredentials()
      • setTrimCredentials

        public void setTrimCredentials​(boolean trimCredentials)
      • doAuthenticate

        protected boolean doAuthenticate​(Request request,
                                         HttpServletResponse response)
        Description copied from class: AuthenticatorBase
        Provided for sub-classes to implement their specific authentication mechanism.
        Specified by:
        doAuthenticate in class AuthenticatorBase
        request - The request that triggered the authentication
        response - The response associated with the request
        true if the the user was authenticated, otherwise false, in which case an authentication challenge will have been written to the response
        Throws: - If an I/O problem occurred during the authentication process
      • isPreemptiveAuthPossible

        protected boolean isPreemptiveAuthPossible​(Request request)
        Description copied from class: AuthenticatorBase
        Can the authenticator perform preemptive authentication for the given request?
        isPreemptiveAuthPossible in class AuthenticatorBase
        request - The request to check for credentials
        true if preemptive authentication is possible, otherwise false