public abstract class AbstractCarbonUIAuthenticator extends Object implements CarbonUIAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
static String |
PASSWORD |
static String |
REMEMBER_ME |
static String |
USERNAME |
| Constructor and Description |
|---|
AbstractCarbonUIAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
doAuthentication(Object credentials,
boolean isRememberMe,
org.apache.axis2.client.ServiceClient client,
javax.servlet.http.HttpServletRequest request) |
List<String> |
getAuthenticationSkippingUrls()
In default implementation this will return an empty list.
|
int |
getPriority()
In default implementation this will read the priority from authenticator configuration.
|
List<String> |
getSessionValidationSkippingUrls()
In default implementation this will return some SSO links to be skipped.
|
protected static String |
getUserNameFromCookie(String cookieValue) |
abstract void |
handleRememberMe(Map transportHeaders,
javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
handleSecurity(Object credentials,
boolean rememberMe,
javax.servlet.http.HttpServletRequest request) |
protected boolean |
isAdminCookieSet() |
boolean |
isDisabled()
In default implementation this will read the authenticator configuration and will return true
if authenticator is disabled in the configuration.
|
void |
onSuccessAdminLogin(javax.servlet.http.HttpServletRequest request,
String userName) |
protected void |
setAdminCookie(javax.servlet.http.HttpSession session,
org.apache.axis2.client.ServiceClient serviceClient,
String rememberMeCookie) |
protected void |
setUserInformation(String cookie,
String backendServerURL,
javax.servlet.http.HttpSession session) |
boolean |
skipLoginPage()
If Authenticator does not need to have login page - set this to true.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, authenticateWithCookie, canHandle, getAuthenticatorName, unauthenticatepublic static final String USERNAME
public static final String PASSWORD
public static final String REMEMBER_ME
protected static final org.apache.commons.logging.Log log
public boolean isDisabled()
isDisabled in interface CarbonUIAuthenticatortrue if authenticator is disabled, else false.public int getPriority()
getPriority in interface CarbonUIAuthenticatorpublic List<String> getSessionValidationSkippingUrls()
getSessionValidationSkippingUrls in interface CarbonUIAuthenticatorpublic List<String> getAuthenticationSkippingUrls()
getAuthenticationSkippingUrls in interface CarbonUIAuthenticatorpublic abstract String doAuthentication(Object credentials, boolean isRememberMe, org.apache.axis2.client.ServiceClient client, javax.servlet.http.HttpServletRequest request) throws org.wso2.carbon.core.common.AuthenticationException
credentials - rememberMe - client - request - org.wso2.carbon.core.common.AuthenticationExceptionpublic abstract void handleRememberMe(Map transportHeaders, javax.servlet.http.HttpServletRequest httpServletRequest) throws org.wso2.carbon.core.common.AuthenticationException
serviceClient - httpServletRequest - org.apache.axis2.AxisFaultorg.wso2.carbon.core.common.AuthenticationExceptionprotected boolean isAdminCookieSet()
public void handleSecurity(Object credentials, boolean rememberMe, javax.servlet.http.HttpServletRequest request) throws org.wso2.carbon.core.common.AuthenticationException
credentials - rememberMe - request - org.apache.axis2.AxisFaultorg.wso2.carbon.core.common.AuthenticationExceptionpublic boolean skipLoginPage()
CarbonUIAuthenticatorskipLoginPage in interface CarbonUIAuthenticatorpublic void onSuccessAdminLogin(javax.servlet.http.HttpServletRequest request,
String userName)
throws Exception
request - userName - Exceptionprotected void setUserInformation(String cookie, String backendServerURL, javax.servlet.http.HttpSession session) throws RemoteException
cookie - backendServerURL - session - RemoteExceptionprotected static String getUserNameFromCookie(String cookieValue)
cookieValue - protected void setAdminCookie(javax.servlet.http.HttpSession session,
org.apache.axis2.client.ServiceClient serviceClient,
String rememberMeCookie)
throws org.apache.axis2.AxisFault
session - serviceClient - rememberMeCookie - org.apache.axis2.AxisFaultCopyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.