Class RestAuthSessionHelperUtil

java.lang.Object
com.atlassian.crowd.plugin.rest.service.util.RestAuthSessionHelperUtil
Direct Known Subclasses:
AuthenticatedApplicationUtil, AuthenticatedUserUtil

public class RestAuthSessionHelperUtil extends Object
  • 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 from
      key - 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