Class BaseAuthenticator

java.lang.Object
org.jolokia.server.core.osgi.security.BaseAuthenticator
All Implemented Interfaces:
Authenticator
Direct Known Subclasses:
BasicAuthenticator, JaasAuthenticator

public abstract class BaseAuthenticator extends Object implements Authenticator
Interface used for performing the authentication.
Since:
26.05.14
Author:
roland
  • Constructor Details

    • BaseAuthenticator

      public BaseAuthenticator()
  • Method Details

    • authenticate

      public boolean authenticate(jakarta.servlet.http.HttpServletRequest pRequest)
      Authenticate the given request
      Specified by:
      authenticate in interface Authenticator
      Parameters:
      pRequest - request to examine
      Returns:
      true if authentication passes, false otherwise
    • doAuthenticate

      protected abstract boolean doAuthenticate(jakarta.servlet.http.HttpServletRequest pRequest, AuthorizationHeaderParser.Result pAuthInfo)
      Overriden by concrete implementations for doing the real authentication
      Parameters:
      pRequest - request which can be used to store additional authentication information
      pAuthInfo - authentication information provided by the user
      Returns:
      true if authentication is ok, false otherwise