Class RestAuthSessionHelperUtil
java.lang.Object
com.atlassian.crowd.plugin.rest.service.util.RestAuthSessionHelperUtil
- Direct Known Subclasses:
AuthenticatedApplicationUtil
,AuthenticatedUserUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
fetchStringFromRequestSession
(javax.servlet.http.HttpServletRequest request, String key)
-
Constructor Details
-
RestAuthSessionHelperUtil
public RestAuthSessionHelperUtil()
-
-
Method Details
-
fetchStringFromRequestSession
@Nullable protected static String fetchStringFromRequestSession(javax.servlet.http.HttpServletRequest request, String key) - Parameters:
request
- request to fetch string fromkey
- key of the string to fetch- Returns:
- the string which was stored in the request's session under the given key, or null if there was no session or there was no value for that key
- Throws:
ClassCastException
- if the value stored in the request's session under the given key is not a string
-