Class RequestParameterService


  • @Named
    public class RequestParameterService
    extends Object
    Version:
    February 2, 2022
    Author:
    Yuriy Movchan, Javier Rojas Blum
    • Constructor Detail

      • RequestParameterService

        public RequestParameterService()
    • Method Detail

      • getCustomParameters

        public Map<String,​String> getCustomParameters​(@Nonnull
                                                            Map<String,​String> requestParameterMap,
                                                            boolean onlyReturnInResponseParams)
      • getParameterValue

        public String getParameterValue​(String name)
      • 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 processing
        customParameters - 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)
      • putCustomParametersIntoSession

        public void putCustomParametersIntoSession​(Map<String,​String> sessionAttributes,
                                                   Map<String,​String> customParameters)