|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.userprofiling.CookieManager
public class CookieManager
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.userprofiling.ProfileRequestConstants |
---|
PROFILE_PARAMETER_NAME, PROFILE_VERFICATION_PARAMETER_NAME |
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 | |
---|---|
CookieManager()
Constructs an instanceof CookieManager |
Method Summary | |
---|---|
boolean |
cookieProfileIdValid(java.lang.String pProfileId,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Returns true if the supplied profile id is valid, based on the verification cookie. |
void |
expireProfileCookies(Profile pProfile,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Sends cookie out on the request to expire any existing profile cookies |
java.lang.String |
extractProfileId(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Attempts to extract the profile id out of the cookies |
void |
forceProfileCookies(Profile pProfile,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Forces the response to contain new profile cookies. |
protected java.lang.String |
generateIdChecksum(java.lang.String pId)
Returns a checksum of the given Id which can be used to determine if the profile id cookie has been tampered with |
java.lang.String |
getCookieHashKey()
Returns property CookieHashKey |
java.lang.String |
getProfileCookieComment()
Returns property ProfileCookieComment |
java.lang.String |
getProfileCookieDomain()
Returns property ProfileCookieDomain |
int |
getProfileCookieMaxAge()
Returns property ProfileCookieMaxAge |
java.lang.String |
getProfileCookiePath()
Returns property ProfileCookiePath |
boolean |
isExpireProfileCookiesOnLogout()
Returns property ExpireProfileCookiesOnLogout |
boolean |
isProfileCookieSecure()
Returns property ProfileCookieSecure |
boolean |
isSendProfileCookies()
Returns property SendProfileCookies |
void |
sendProfileCookies(Profile pProfile,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Sends the specified profile id as a cookie. |
void |
setCookieHashKey(java.lang.String pCookieHashKey)
Sets property CookieHashKey |
void |
setExpireProfileCookiesOnLogout(boolean pExpireProfileCookiesOnLogout)
Sets property ExpireProfileCookiesOnLogout |
void |
setProfileCookieComment(java.lang.String pProfileCookieComment)
Sets property ProfileCookieComment |
void |
setProfileCookieDomain(java.lang.String pProfileCookieDomain)
Sets property ProfileCookieDomain |
void |
setProfileCookieMaxAge(int pProfileCookieMaxAge)
Sets property ProfileCookieMaxAge |
void |
setProfileCookiePath(java.lang.String pProfileCookiePath)
Sets property ProfileCookiePath |
void |
setProfileCookieSecure(boolean pProfileCookieSecure)
Sets property ProfileCookieSecure |
void |
setSendProfileCookies(boolean pSendProfileCookies)
Sets property SendProfileCookies |
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 |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CookieManager()
Method Detail |
---|
public void setSendProfileCookies(boolean pSendProfileCookies)
public boolean isSendProfileCookies()
public void setProfileCookieComment(java.lang.String pProfileCookieComment)
public java.lang.String getProfileCookieComment()
public void setProfileCookieDomain(java.lang.String pProfileCookieDomain)
public java.lang.String getProfileCookieDomain()
public void setProfileCookieMaxAge(int pProfileCookieMaxAge)
public int getProfileCookieMaxAge()
public void setProfileCookiePath(java.lang.String pProfileCookiePath)
public java.lang.String getProfileCookiePath()
public void setProfileCookieSecure(boolean pProfileCookieSecure)
public boolean isProfileCookieSecure()
public void setCookieHashKey(java.lang.String pCookieHashKey)
public java.lang.String getCookieHashKey()
public void setExpireProfileCookiesOnLogout(boolean pExpireProfileCookiesOnLogout)
public boolean isExpireProfileCookiesOnLogout()
public java.lang.String extractProfileId(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public boolean cookieProfileIdValid(java.lang.String pProfileId, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void sendProfileCookies(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
- if there was a problem performing the
operation
java.io.IOException
- if there was a problem performing the
operationpublic void forceProfileCookies(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
- if there was a problem performing the
operation
java.io.IOException
- if there was a problem performing the
operationpublic void expireProfileCookies(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
- if there was a problem performing the
operation
java.io.IOException
- if there was a problem performing the
operationprotected java.lang.String generateIdChecksum(java.lang.String pId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |