Package io.jans.as.server.service
Class RequestParameterService
- java.lang.Object
-
- io.jans.as.server.service.RequestParameterService
-
@Named public class RequestParameterService extends Object
- Version:
- February 2, 2022
- Author:
- Yuriy Movchan, Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description RequestParameterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomParameters(jakarta.servlet.http.HttpServletRequest request, Map<String,String> customParameters)
Map<String,String>
getAllowedParameters(Map<String,String> requestParameterMap)
void
getCustomParameters(JwtAuthorizationRequest jwtRequest, Map<String,String> customParameters)
Process a JWT Request instance and update Custom Parameters according to custom parameters sent.Map<String,String>
getCustomParameters(jakarta.servlet.http.HttpServletRequest request)
Map<String,String>
getCustomParameters(Map<String,String> requestParameterMap)
Map<String,String>
getCustomParameters(Map<String,String> requestParameterMap, boolean onlyReturnInResponseParams)
Map<String,String>
getParametersMap(List<String> extraParameters, Map<String,String> parameterMap)
String
getParameterValue(String name)
io.jans.util.Pair<String,String>
getParameterValueWithType(String name)
Object
getTypedValue(String stringValue, String type)
String
parametersAsString(Map<String,String> parameterMap)
void
putCustomParametersIntoSession(io.jans.as.common.model.session.SessionId sessionId, jakarta.servlet.http.HttpServletRequest httpRequest)
void
putCustomParametersIntoSession(io.jans.as.common.model.session.SessionId sessionId, Map<String,String> customParameters)
void
putCustomParametersIntoSession(Map<String,String> sessionAttributes, Map<String,String> customParameters)
-
-
-
Method Detail
-
getAllowedParameters
public Map<String,String> getAllowedParameters(@Nonnull Map<String,String> requestParameterMap)
-
getCustomParameters
public Map<String,String> getCustomParameters(@Nonnull Map<String,String> requestParameterMap)
-
getCustomParameters
public Map<String,String> getCustomParameters(@Nonnull Map<String,String> requestParameterMap, boolean onlyReturnInResponseParams)
-
parametersAsString
public String parametersAsString(Map<String,String> parameterMap) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
getParametersMap
public Map<String,String> getParametersMap(List<String> extraParameters, Map<String,String> parameterMap)
-
getParameterValueWithType
public io.jans.util.Pair<String,String> getParameterValueWithType(String name)
-
getCustomParameters
public void getCustomParameters(JwtAuthorizationRequest jwtRequest, Map<String,String> customParameters)
Process a JWT Request instance and update Custom Parameters according to custom parameters sent.- Parameters:
jwtRequest
- JWT processingcustomParameters
- Custom parameters used in the authorization flow.
-
getCustomParameters
public Map<String,String> getCustomParameters(jakarta.servlet.http.HttpServletRequest request)
-
addCustomParameters
public void addCustomParameters(jakarta.servlet.http.HttpServletRequest request, Map<String,String> customParameters)
-
putCustomParametersIntoSession
public void putCustomParametersIntoSession(io.jans.as.common.model.session.SessionId sessionId, jakarta.servlet.http.HttpServletRequest httpRequest)
-
putCustomParametersIntoSession
public void putCustomParametersIntoSession(io.jans.as.common.model.session.SessionId sessionId, Map<String,String> customParameters)
-
-