Package org.wso2.carbon.ui
Class DefaultCarbonAuthenticator
java.lang.Object
org.wso2.carbon.ui.AbstractCarbonUIAuthenticator
org.wso2.carbon.ui.BasicAuthUIAuthenticator
org.wso2.carbon.ui.DefaultCarbonAuthenticator
- All Implemented Interfaces:
CarbonUIAuthenticator
Default implementation of CarbonUIAuthenticator.
-
Field Summary
FieldsFields inherited from class org.wso2.carbon.ui.AbstractCarbonUIAuthenticator
PASSWORD, REMEMBER_ME, USERNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(javax.servlet.http.HttpServletRequest request) This method will check whether given request can be handled by the authenticator.doAuthentication(Object credentials, boolean isRememberMe, org.apache.axis2.client.ServiceClient client, javax.servlet.http.HttpServletRequest request) Returns the name of the authenticator.voidhandleRememberMe(Map transportHeaders, javax.servlet.http.HttpServletRequest httpServletRequest) voidunauthenticate(Object object) Invalidates the authentication session.Methods inherited from class org.wso2.carbon.ui.BasicAuthUIAuthenticator
authenticate, authenticateWithCookie, getAuthenticationAdminCientMethods inherited from class org.wso2.carbon.ui.AbstractCarbonUIAuthenticator
getAuthenticationSkippingUrls, getPriority, getSessionValidationSkippingUrls, getUserNameFromCookie, handleSecurity, isAdminCookieSet, isDisabled, onSuccessAdminLogin, setAdminCookie, setUserInformation, skipLoginPage
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
DefaultCarbonAuthenticator
public DefaultCarbonAuthenticator()
-
-
Method Details
-
canHandle
public boolean canHandle(javax.servlet.http.HttpServletRequest request) This method will check whether given request can be handled by the authenticator. If authenticator is capable of handling given request this method will returntrue. Else this will returnfalse.- Specified by:
canHandlein interfaceCarbonUIAuthenticator- Overrides:
canHandlein classBasicAuthUIAuthenticator- Returns:
trueif this authenticator can handle the request, elsefalse.
-
doAuthentication
public String doAuthentication(Object credentials, boolean isRememberMe, org.apache.axis2.client.ServiceClient client, javax.servlet.http.HttpServletRequest request) throws org.wso2.carbon.core.common.AuthenticationException - Overrides:
doAuthenticationin classBasicAuthUIAuthenticator- Parameters:
credentials-client-request-- Throws:
org.wso2.carbon.core.common.AuthenticationException
-
unauthenticate
Description copied from interface:CarbonUIAuthenticatorInvalidates the authentication session. TODO why we need this ? An authenticator should not maintain a session- Specified by:
unauthenticatein interfaceCarbonUIAuthenticator- Overrides:
unauthenticatein classBasicAuthUIAuthenticator- Parameters:
object- The request to invalidate TODO (?)- Throws:
Exception- If an error occurred during authentication process.
-
getAuthenticatorName
Returns the name of the authenticator.- Specified by:
getAuthenticatorNamein interfaceCarbonUIAuthenticator- Overrides:
getAuthenticatorNamein classBasicAuthUIAuthenticator- Returns:
- The name of the authenticator.
-
handleRememberMe
public void handleRememberMe(Map transportHeaders, javax.servlet.http.HttpServletRequest httpServletRequest) throws org.wso2.carbon.core.common.AuthenticationException - Overrides:
handleRememberMein classBasicAuthUIAuthenticator- Parameters:
httpServletRequest-- Throws:
org.wso2.carbon.core.common.AuthenticationException
-