public class AuthenticatedApplicationUtil extends RestAuthSessionHelperUtil
HttpServletRequest.| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_NAME_ATTRIBUTE_KEY |
static int |
APPLICATION_SESSION_INACTIVE_INTERVAL_SECONDS |
static String |
APPLICATION_TOKEN_ATTRIBUTE_KEY |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
Returns the application name from the
HttpSession, or null if no application name was found. |
static Token |
getAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request)
Returns the application token from the
HttpSession, or null if there is none |
static void |
setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request,
String applicationName)
Sets the name of the authenticated application as an attribute of the
HttpSession. |
static void |
setAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request,
Token token)
Sets the application token of the authenticated application as an attribute of the
HttpSession. |
fetchStringFromRequestSessionpublic static final String APPLICATION_NAME_ATTRIBUTE_KEY
public static final String APPLICATION_TOKEN_ATTRIBUTE_KEY
public static final int APPLICATION_SESSION_INACTIVE_INTERVAL_SECONDS
@Nullable public static String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
HttpSession, or null if no application name was found.request - HTTP servlet requestpublic static void setAuthenticatedApplication(javax.servlet.http.HttpServletRequest request,
String applicationName)
HttpSession.request - HTTP servlet requestapplicationName - name of the authenticated application@Nullable public static Token getAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request)
HttpSession, or null if there is nonerequest - HTTP servlet requestnull if there is nonepublic static void setAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request,
Token token)
HttpSession.request - HTTP servlet requesttoken - application tokenCopyright © 2018 Atlassian. All rights reserved.