|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.servlet.pipeline.PipelineableServletImpl
atg.servlet.pipeline.InsertableServletImpl
atg.svc.clicktoconnect.AuthenticationServlet
public class AuthenticationServlet
This servlet will auto-login the username provided with the C2CRequestData. Hash values are compared prior to auto-login
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected C2CTools |
mC2CTools
|
protected atg.userprofiling.ProfileServices |
mProfileServices
|
protected atg.userprofiling.ProfileTools |
mProfileTools
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
AuthenticationServlet()
|
Method Summary | |
---|---|
C2CTools |
getC2CTools()
get C2CTools |
atg.userprofiling.ProfileServices |
getProfileServices()
get ProfileServices |
atg.userprofiling.ProfileTools |
getProfileTools()
get ProfileTools |
boolean |
handleLogin(java.lang.String pLogin,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
handleLogin authenticates a user based on the supplied username. |
protected boolean |
isDoService(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Returns true if the conditions are correct for the servlet to execute. |
boolean |
isEnabled()
get Enabled |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
service the request |
void |
setC2CTools(C2CTools pTools)
set C2CTools |
void |
setEnabled(boolean pEnabled)
set Enabled |
void |
setProfileServices(atg.userprofiling.ProfileServices pProfileServices)
Set ProfileServices |
void |
setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
set ProfileTools |
Methods inherited from class atg.servlet.pipeline.InsertableServletImpl |
---|
doStartService, getInsertAfterServlet, setInsertAfterServlet |
Methods inherited from class atg.servlet.pipeline.PipelineableServletImpl |
---|
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, doStopService, getAbsoluteName, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.servlet.pipeline.PipelineableServlet |
---|
getNextServlet, passRequest, setNextServlet |
Methods inherited from interface javax.servlet.Servlet |
---|
destroy, getServletConfig, getServletInfo, init, service |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected C2CTools mC2CTools
protected atg.userprofiling.ProfileServices mProfileServices
protected atg.userprofiling.ProfileTools mProfileTools
Constructor Detail |
---|
public AuthenticationServlet()
Method Detail |
---|
public C2CTools getC2CTools()
public void setC2CTools(C2CTools pTools)
pTools
- the C2CToolspublic void setProfileServices(atg.userprofiling.ProfileServices pProfileServices)
pProfileServices
- the ProfileServicespublic atg.userprofiling.ProfileServices getProfileServices()
public void setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
pProfileTools
- the ProfileToolspublic atg.userprofiling.ProfileTools getProfileTools()
public void setEnabled(boolean pEnabled)
pEnabled
- the Enabledpublic boolean isEnabled()
protected boolean isDoService(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
To return true, the servlet must be enabled, session not logged in yet, c2cRequestInitialization parameter must be on the request, C2CRequestData must be present on the session, a username must be provided on the C2CRequestData and the hash values must successfully compare.
pRequest
- pResponse
-
isEnabled()
,
C2CTools.isLoggedIn()
,
C2CTools.compareHash(C2CRequestData)
public void service(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
service
in class atg.servlet.pipeline.PipelineableServletImpl
java.io.IOException
javax.servlet.ServletException
public boolean handleLogin(java.lang.String pLogin, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
pLogin
- the username of the agent wishing to loginpRequest
- the current requestpResponse
- the current response
javax.servlet.ServletException
- if something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |