Class RequestUtil

java.lang.Object
de.bund.bva.isyfact.serviceapi.common.RequestUtil

@Deprecated public final class RequestUtil extends Object
Deprecated.
This module is deprecated and will be removed in a future release. It is recommended to use REST according to IsyFacts REST Concept instead.
Class containing helper methods for accessing HttpServletRequest.
  • Method Details

    • extractBearerToken

      public static String extractBearerToken(javax.servlet.http.HttpServletRequest request)
      Deprecated.
      Extracts the OAuth 2 bearer token from the request.
      Parameters:
      request - the request to extract the token from
      Returns:
      the Base64 encoded token, or null if no token was found
    • extractBearerToken

      public static String extractBearerToken(String authHeader)
      Deprecated.
      Extracts the OAuth 2 bearer token from provided header value.
      Parameters:
      authHeader - the value of the HTTP Authorization header
      Returns:
      the Base64 encoded token, or null if no token was found