Package io.jans.as.server.service
Class RequestParameterService
- java.lang.Object
-
- io.jans.as.server.service.RequestParameterService
-
@Named public class RequestParameterService extends java.lang.Object
- Version:
- October 7, 2019
- 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 java.util.Map<java.lang.String,java.lang.String>
getAllowedParameters(java.util.Map<java.lang.String,java.lang.String> requestParameterMap)
void
getCustomParameters(JwtAuthorizationRequest jwtRequest, java.util.Map<java.lang.String,java.lang.String> customParameters)
Process a JWT Request instance and update Custom Parameters according to custom parameters sent.java.util.Map<java.lang.String,java.lang.String>
getCustomParameters(java.util.Map<java.lang.String,java.lang.String> requestParameterMap)
java.util.Map<java.lang.String,java.lang.String>
getParametersMap(java.util.List<java.lang.String> extraParameters, java.util.Map<java.lang.String,java.lang.String> parameterMap)
java.lang.String
getParameterValue(java.lang.String name)
io.jans.util.Pair<java.lang.String,java.lang.String>
getParameterValueWithType(java.lang.String name)
java.lang.Object
getTypedValue(java.lang.String stringValue, java.lang.String type)
java.lang.String
parametersAsString(java.util.Map<java.lang.String,java.lang.String> parameterMap)
-
-
-
Method Detail
-
getAllowedParameters
public java.util.Map<java.lang.String,java.lang.String> getAllowedParameters(@Nonnull java.util.Map<java.lang.String,java.lang.String> requestParameterMap)
-
getCustomParameters
public java.util.Map<java.lang.String,java.lang.String> getCustomParameters(@Nonnull java.util.Map<java.lang.String,java.lang.String> requestParameterMap)
-
parametersAsString
public java.lang.String parametersAsString(java.util.Map<java.lang.String,java.lang.String> parameterMap) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
getParametersMap
public java.util.Map<java.lang.String,java.lang.String> getParametersMap(java.util.List<java.lang.String> extraParameters, java.util.Map<java.lang.String,java.lang.String> parameterMap)
-
getParameterValue
public java.lang.String getParameterValue(java.lang.String name)
-
getParameterValueWithType
public io.jans.util.Pair<java.lang.String,java.lang.String> getParameterValueWithType(java.lang.String name)
-
getTypedValue
public java.lang.Object getTypedValue(java.lang.String stringValue, java.lang.String type)
-
getCustomParameters
public void getCustomParameters(JwtAuthorizationRequest jwtRequest, java.util.Map<java.lang.String,java.lang.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.
-
-