Class ConsentGatheringSessionService
- java.lang.Object
-
- io.jans.as.server.authorize.ws.rs.ConsentGatheringSessionService
-
@Named public class ConsentGatheringSessionService extends java.lang.Object
- Version:
- December 8, 2018
- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description ConsentGatheringSessionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(SessionId session, java.lang.String scriptName, java.lang.String clientId, java.lang.String state)
io.jans.as.common.model.registration.Client
getClient(SessionId session)
java.lang.String
getClientId(SessionId session)
SessionId
getConnectSession(javax.servlet.http.HttpServletRequest httpRequest)
SessionId
getConsentSession(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, java.lang.String userDn, boolean create)
java.lang.String
getScriptName(SessionId session)
int
getStep(SessionId session)
io.jans.as.common.model.common.User
getUser(javax.servlet.http.HttpServletRequest httpRequest, java.lang.String... returnAttributes)
java.lang.String
getUserDn(javax.servlet.http.HttpServletRequest httpRequest)
boolean
hasCookie(javax.servlet.http.HttpServletRequest httpRequest)
boolean
isPassedPreviousSteps(SessionId session, java.lang.Integer step)
boolean
isSessionStateAuthenticated(javax.servlet.http.HttpServletRequest httpRequest)
boolean
isStepPassed(SessionId session, java.lang.Integer step)
void
markStep(SessionId session, java.lang.Integer step, boolean value)
boolean
persist(SessionId session)
void
resetToStep(SessionId session, int overridenNextStep, int step)
void
setAuthenticatedSessionState(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, SessionId sessionId)
void
setClientId(SessionId session, java.lang.String clientId)
void
setScriptName(SessionId session, java.lang.String scriptName)
void
setStep(int step, SessionId session)
-
-
-
Method Detail
-
getConnectSession
public SessionId getConnectSession(javax.servlet.http.HttpServletRequest httpRequest)
-
hasCookie
public boolean hasCookie(javax.servlet.http.HttpServletRequest httpRequest)
-
getConsentSession
public SessionId getConsentSession(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, java.lang.String userDn, boolean create)
-
setAuthenticatedSessionState
public void setAuthenticatedSessionState(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, SessionId sessionId)
-
isSessionStateAuthenticated
public boolean isSessionStateAuthenticated(javax.servlet.http.HttpServletRequest httpRequest)
-
persist
public boolean persist(SessionId session)
-
getStep
public int getStep(SessionId session)
-
setStep
public void setStep(int step, SessionId session)
-
configure
public void configure(SessionId session, java.lang.String scriptName, java.lang.String clientId, java.lang.String state)
-
isStepPassed
public boolean isStepPassed(SessionId session, java.lang.Integer step)
-
isPassedPreviousSteps
public boolean isPassedPreviousSteps(SessionId session, java.lang.Integer step)
-
markStep
public void markStep(SessionId session, java.lang.Integer step, boolean value)
-
getScriptName
public java.lang.String getScriptName(SessionId session)
-
setScriptName
public void setScriptName(SessionId session, java.lang.String scriptName)
-
getClientId
public java.lang.String getClientId(SessionId session)
-
setClientId
public void setClientId(SessionId session, java.lang.String clientId)
-
resetToStep
public void resetToStep(SessionId session, int overridenNextStep, int step)
-
getUser
public io.jans.as.common.model.common.User getUser(javax.servlet.http.HttpServletRequest httpRequest, java.lang.String... returnAttributes)
-
getUserDn
public java.lang.String getUserDn(javax.servlet.http.HttpServletRequest httpRequest)
-
getClient
public io.jans.as.common.model.registration.Client getClient(SessionId session)
-
-