Class RequestUtil
java.lang.Object
de.bund.bva.isyfact.serviceapi.common.RequestUtil
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 Summary
Modifier and TypeMethodDescriptionstatic StringextractBearerToken(String authHeader) Deprecated.Extracts the OAuth 2 bearer token from provided header value.static StringextractBearerToken(javax.servlet.http.HttpServletRequest request) Deprecated.Extracts the OAuth 2 bearer token from the request.
-
Method Details
-
extractBearerToken
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
nullif no token was found
-
extractBearerToken
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
nullif no token was found
-