Class ConsentGatheringSessionService


  • @Named
    public class ConsentGatheringSessionService
    extends Object
    Version:
    December 8, 2018
    Author:
    Yuriy Movchan
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(io.jans.as.common.model.session.SessionId session, String scriptName, String clientId, String state)  
      io.jans.as.common.model.registration.Client getClient​(io.jans.as.common.model.session.SessionId session)  
      String getClientId​(io.jans.as.common.model.session.SessionId session)  
      io.jans.as.common.model.session.SessionId getConnectSession​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      io.jans.as.common.model.session.SessionId getConsentSession​(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, String userDn, boolean create)  
      String getScriptName​(io.jans.as.common.model.session.SessionId session)  
      int getStep​(io.jans.as.common.model.session.SessionId session)  
      io.jans.as.common.model.common.User getUser​(jakarta.servlet.http.HttpServletRequest httpRequest, String... returnAttributes)  
      String getUserDn​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      boolean hasCookie​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      boolean isPassedPreviousSteps​(io.jans.as.common.model.session.SessionId session, Integer step)  
      boolean isSessionStateAuthenticated​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      boolean isStepPassed​(io.jans.as.common.model.session.SessionId session, Integer step)  
      void markStep​(io.jans.as.common.model.session.SessionId session, Integer step, boolean value)  
      boolean persist​(io.jans.as.common.model.session.SessionId session)  
      void resetToStep​(io.jans.as.common.model.session.SessionId session, int overridenNextStep, int step)  
      void setAuthenticatedSessionState​(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, io.jans.as.common.model.session.SessionId sessionId)  
      void setClientId​(io.jans.as.common.model.session.SessionId session, String clientId)  
      void setScriptName​(io.jans.as.common.model.session.SessionId session, String scriptName)  
      void setStep​(int step, io.jans.as.common.model.session.SessionId session)  
    • Constructor Detail

      • ConsentGatheringSessionService

        public ConsentGatheringSessionService()
    • Method Detail

      • getConnectSession

        public io.jans.as.common.model.session.SessionId getConnectSession​(jakarta.servlet.http.HttpServletRequest httpRequest)
      • hasCookie

        public boolean hasCookie​(jakarta.servlet.http.HttpServletRequest httpRequest)
      • getConsentSession

        public io.jans.as.common.model.session.SessionId getConsentSession​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                                                           jakarta.servlet.http.HttpServletResponse httpResponse,
                                                                           String userDn,
                                                                           boolean create)
      • setAuthenticatedSessionState

        public void setAuthenticatedSessionState​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                                 jakarta.servlet.http.HttpServletResponse httpResponse,
                                                 io.jans.as.common.model.session.SessionId sessionId)
      • isSessionStateAuthenticated

        public boolean isSessionStateAuthenticated​(jakarta.servlet.http.HttpServletRequest httpRequest)
      • persist

        public boolean persist​(io.jans.as.common.model.session.SessionId session)
      • getStep

        public int getStep​(io.jans.as.common.model.session.SessionId session)
      • setStep

        public void setStep​(int step,
                            io.jans.as.common.model.session.SessionId session)
      • configure

        public void configure​(io.jans.as.common.model.session.SessionId session,
                              String scriptName,
                              String clientId,
                              String state)
      • isStepPassed

        public boolean isStepPassed​(io.jans.as.common.model.session.SessionId session,
                                    Integer step)
      • isPassedPreviousSteps

        public boolean isPassedPreviousSteps​(io.jans.as.common.model.session.SessionId session,
                                             Integer step)
      • markStep

        public void markStep​(io.jans.as.common.model.session.SessionId session,
                             Integer step,
                             boolean value)
      • getScriptName

        public String getScriptName​(io.jans.as.common.model.session.SessionId session)
      • setScriptName

        public void setScriptName​(io.jans.as.common.model.session.SessionId session,
                                  String scriptName)
      • getClientId

        public String getClientId​(io.jans.as.common.model.session.SessionId session)
      • setClientId

        public void setClientId​(io.jans.as.common.model.session.SessionId session,
                                String clientId)
      • resetToStep

        public void resetToStep​(io.jans.as.common.model.session.SessionId session,
                                int overridenNextStep,
                                int step)
      • getUser

        public io.jans.as.common.model.common.User getUser​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                                           String... returnAttributes)
      • getUserDn

        public String getUserDn​(jakarta.servlet.http.HttpServletRequest httpRequest)
      • getClient

        public io.jans.as.common.model.registration.Client getClient​(io.jans.as.common.model.session.SessionId session)