|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.service.util.AuthenticatedApplicationUtil
public class AuthenticatedApplicationUtil
Utility for setting and retrieving the application name and token from the HttpServletRequest.
| Field Summary | |
|---|---|
static String |
APPLICATION_NAME_ATTRIBUTE_KEY
|
static String |
APPLICATION_TOKEN_ATTRIBUTE_KEY
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APPLICATION_NAME_ATTRIBUTE_KEY
public static final String APPLICATION_TOKEN_ATTRIBUTE_KEY
| Method Detail |
|---|
@Nullable public static String getAuthenticatedApplication(javax.servlet.http.HttpServletRequest request)
HttpSession, or null if no application name was found.
request - HTTP servlet request
public 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 none
request - HTTP servlet request
null if there is none
public static void setAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request,
Token token)
HttpSession.
request - HTTP servlet requesttoken - application token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||