Class BaseAuthenticator
java.lang.Object
org.jolokia.server.core.osgi.security.BaseAuthenticator
- All Implemented Interfaces:
Authenticator
- Direct Known Subclasses:
BasicAuthenticator,JaasAuthenticator
Interface used for performing the authentication.
- Since:
- 26.05.14
- Author:
- roland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(jakarta.servlet.http.HttpServletRequest pRequest) Authenticate the given requestprotected abstract booleandoAuthenticate(jakarta.servlet.http.HttpServletRequest pRequest, AuthorizationHeaderParser.Result pAuthInfo) Overriden by concrete implementations for doing the real authentication
-
Constructor Details
-
BaseAuthenticator
public BaseAuthenticator()
-
-
Method Details
-
authenticate
public boolean authenticate(jakarta.servlet.http.HttpServletRequest pRequest) Authenticate the given request- Specified by:
authenticatein interfaceAuthenticator- 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 informationpAuthInfo- authentication information provided by the user- Returns:
- true if authentication is ok, false otherwise
-