public abstract class AbstractAuthenticationDataPublisher
extends org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandler
implements org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisher
| Modifier and Type | Field and Description |
|---|---|
static String |
UNKNOWN |
static String |
USER_AGENT |
| Constructor and Description |
|---|
AbstractAuthenticationDataPublisher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(org.wso2.carbon.identity.core.bean.context.MessageContext messageContext) |
abstract void |
doPublishAuthenticationFailure(AuthenticationData authenticationData)
Does the publishing part of authentication step failure
|
abstract void |
doPublishAuthenticationStepFailure(AuthenticationData authenticationData)
Does the publishing part of authentication step failure
|
abstract void |
doPublishAuthenticationStepSuccess(AuthenticationData authenticationData)
Does the publishing part of authentication step success
|
abstract void |
doPublishAuthenticationSuccess(AuthenticationData authenticationData)
Does the publishing part of authentication success
|
abstract void |
doPublishSessionCreation(SessionData sessionData)
Does the publishing part of session creation
|
abstract void |
doPublishSessionTermination(SessionData sessionData)
Does the publishing part of session termination
|
abstract void |
doPublishSessionUpdate(SessionData sessionData)
Does the publishing part of session update
|
protected String |
getClientIpAddress(javax.servlet.http.HttpServletRequest request)
Get client IP address from the http request
|
protected String |
getFirstIP(String commaSeparatedIPs)
Get the first IP from a comma separated list of IPs
|
protected long |
getSessionExpirationTime(long createdTime,
long updatedTime,
String tenantDomain,
boolean isRememberMe)
Get the expiration time of the session
|
void |
publishAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
Publishes authentication failure
|
void |
publishAuthenticationStepFailure(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
Published authentication step failure
|
void |
publishAuthenticationStepSuccess(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
Publish authentication success
|
void |
publishAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
Publishes authentication success
|
void |
publishSessionCreation(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
Publishes session creation information
|
void |
publishSessionTermination(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
Publishes session termination
|
void |
publishSessionUpdate(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
Publishes session update
|
getPriority, init, isEnabledpublic static final String UNKNOWN
public static final String USER_AGENT
public void publishAuthenticationStepSuccess(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
publishAuthenticationStepSuccess in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Request which comes to the framework for authenticationcontext - Authentication contextparams - Other parameters which are need to be passedpublic void publishAuthenticationStepFailure(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
publishAuthenticationStepFailure in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming Http request to framework for authenticationcontext - Authentication Contextparams - Other relevant parameters which needs to be publishedpublic void publishAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
publishAuthenticationSuccess in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming request for authenticationcontext - Authentication contextparams - Other relevant parameters which needs to be publishedpublic void publishAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
Map<String,Object> params)
publishAuthenticationFailure in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming authentication requestcontext - Authentication contextparams - Other relevant parameters which needs to be publishedpublic void publishSessionCreation(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
publishSessionCreation in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming request for authenticationcontext - Authentication ContextsessionContext - Session contextparams - Other relevant parameters which needs to be publishedpublic void publishSessionUpdate(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
publishSessionUpdate in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming request for authenticationcontext - Authentication contextsessionContext - Session contextparams - Other relevant parameters which needs to be publishedpublic void publishSessionTermination(javax.servlet.http.HttpServletRequest request,
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context,
org.wso2.carbon.identity.application.authentication.framework.context.SessionContext sessionContext,
Map<String,Object> params)
publishSessionTermination in interface org.wso2.carbon.identity.application.authentication.framework.AuthenticationDataPublisherrequest - Incoming request for authenticationcontext - Authentication contextsessionContext - Session contextparams - Other relevant parameters which needs to be publishedpublic abstract void doPublishAuthenticationStepSuccess(AuthenticationData authenticationData)
authenticationData - Bean with authentication informationpublic abstract void doPublishAuthenticationStepFailure(AuthenticationData authenticationData)
authenticationData - Bean with authentication informationpublic abstract void doPublishAuthenticationSuccess(AuthenticationData authenticationData)
authenticationData - Bean with authentication informationpublic abstract void doPublishAuthenticationFailure(AuthenticationData authenticationData)
authenticationData - Bean with authentication informationpublic abstract void doPublishSessionCreation(SessionData sessionData)
sessionData - Bean with session informationpublic abstract void doPublishSessionUpdate(SessionData sessionData)
sessionData - Bean with session informationpublic abstract void doPublishSessionTermination(SessionData sessionData)
sessionData - Bean with session informationprotected long getSessionExpirationTime(long createdTime,
long updatedTime,
String tenantDomain,
boolean isRememberMe)
createdTime - Created time of the sessionupdatedTime - Updated time of the sessiontenantDomain - Tenant DomainisRememberMe - Whether remember me is enabledprotected String getClientIpAddress(javax.servlet.http.HttpServletRequest request)
request - http servlet requestprotected String getFirstIP(String commaSeparatedIPs)
commaSeparatedIPs - String which contains comma+space separated IPspublic boolean canHandle(org.wso2.carbon.identity.core.bean.context.MessageContext messageContext)
canHandle in interface org.wso2.carbon.identity.core.handler.IdentityMessageHandlercanHandle in class org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandlerCopyright © 2016 WSO2. All rights reserved.