Class UmaSessionService


  • @Named
    public class UmaSessionService
    extends Object
    Version:
    December 8, 2018
    Author:
    yuriyz
    • 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, List<io.jans.as.model.uma.persistence.UmaPermission> permissions, String clientId, String claimRedirectUri, String state)  
      String getClaimsRedirectUri​(io.jans.as.common.model.session.SessionId session)  
      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)  
      String getPct​(io.jans.as.common.model.session.SessionId session)  
      String getScriptName​(io.jans.as.common.model.session.SessionId session)  
      io.jans.as.common.model.session.SessionId getSession​(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)  
      String getState​(io.jans.as.common.model.session.SessionId session)  
      int getStep​(io.jans.as.common.model.session.SessionId session)  
      String getTicket​(io.jans.as.common.model.session.SessionId session)  
      io.jans.as.common.model.common.User getUser​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      String getUserDn​(jakarta.servlet.http.HttpServletRequest httpRequest)  
      boolean isPassedPreviousSteps​(io.jans.as.common.model.session.SessionId session, Integer step)  
      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 setClaimsRedirectUri​(io.jans.as.common.model.session.SessionId session, String claimsRedirectUri)  
      void setClientId​(io.jans.as.common.model.session.SessionId session, String clientId)  
      void setPct​(io.jans.as.common.model.session.SessionId session, String pct)  
      void setScriptName​(io.jans.as.common.model.session.SessionId session, String scriptName)  
      void setState​(io.jans.as.common.model.session.SessionId session, String state)  
      void setStep​(int step, io.jans.as.common.model.session.SessionId session)  
      void setTicket​(io.jans.as.common.model.session.SessionId session, String ticket)  
    • Constructor Detail

      • UmaSessionService

        public UmaSessionService()
    • Method Detail

      • getConnectSession

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

        public io.jans.as.common.model.session.SessionId getSession​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                                                    jakarta.servlet.http.HttpServletResponse httpResponse)
      • 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,
                              List<io.jans.as.model.uma.persistence.UmaPermission> permissions,
                              String clientId,
                              String claimRedirectUri,
                              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)
      • getPct

        public String getPct​(io.jans.as.common.model.session.SessionId session)
      • setPct

        public void setPct​(io.jans.as.common.model.session.SessionId session,
                           String pct)
      • 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)
      • getClaimsRedirectUri

        public String getClaimsRedirectUri​(io.jans.as.common.model.session.SessionId session)
      • setClaimsRedirectUri

        public void setClaimsRedirectUri​(io.jans.as.common.model.session.SessionId session,
                                         String claimsRedirectUri)
      • getState

        public String getState​(io.jans.as.common.model.session.SessionId session)
      • setState

        public void setState​(io.jans.as.common.model.session.SessionId session,
                             String state)
      • getTicket

        public String getTicket​(io.jans.as.common.model.session.SessionId session)
      • setTicket

        public void setTicket​(io.jans.as.common.model.session.SessionId session,
                              String ticket)
      • 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)
      • 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)