public class AtlassianSessionIdUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ASESSIONID_NAME |
static String |
JSESSIONID_NAME |
Constructor and Description |
---|
AtlassianSessionIdUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
generateASESSIONID(String sessionId)
This will generate a hashed version of the passed in HttpSession sessionId
It will be returned in the form digestEncodedValue-hexEncodedValue
|
static String |
generateAtlassianSessionHash(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
This will look for an existing HTTP session and if its present, it will generate a ASESSIONID base on a hash of
the session's id.
|
public static final String ASESSIONID_NAME
public static final String JSESSIONID_NAME
public static String generateAtlassianSessionHash(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest
- the HTTP requesthttpServletResponse
- the HTTP responsepublic static String generateASESSIONID(String sessionId)
sessionId
- the session id stringCopyright © 2002-2015 Atlassian. All Rights Reserved.