Package io.jans.as.server.model.common
Class ExecutionContext
- java.lang.Object
-
- io.jans.as.server.model.common.ExecutionContext
-
public class ExecutionContext extends Object
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext()
ExecutionContext(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.model.token.TokenEntity
getAccessTokenEntity()
io.jans.as.model.configuration.AppConfiguration
getAppConfiguration()
@Nullable String
getAttribute(@NotNull String key)
@NotNull Map<String,String>
getAttributes()
io.jans.as.common.service.AttributeService
getAttributeService()
OAuth2AuditLog
getAuditLog()
io.jans.as.model.authzdetails.AuthzDetail
getAuthzDetail()
io.jans.as.model.authzdetails.AuthzDetails
getAuthzDetails()
AuthzRequest
getAuthzRequest()
String
getCertAsPem()
String
getClaimsAsString()
io.jans.as.common.model.registration.Client
getClient()
List<io.jans.as.common.model.session.SessionId>
getCurrentSessions()
String
getDeviceSecret()
String
getDpop()
AuthorizationGrant
getGrant()
jakarta.servlet.http.HttpServletRequest
getHttpRequest()
jakarta.servlet.http.HttpServletResponse
getHttpResponse()
io.jans.model.token.TokenEntity
getIdTokenEntity()
String
getNonce()
Function<io.jans.as.model.token.JsonWebResponse,Void>
getPostProcessor()
Function<io.jans.as.model.token.JsonWebResponse,Void>
getPreProcessing()
io.jans.model.token.TokenEntity
getRefreshTokenEntity()
jakarta.ws.rs.core.Response.ResponseBuilder
getResponseBuilder()
Set<String>
getScopes()
io.jans.model.custom.script.conf.CustomScriptConfiguration
getScript()
io.jans.as.common.model.session.SessionId
getSessionId()
String
getState()
io.jans.as.common.model.common.User
getUser()
List<io.jans.as.common.model.session.SessionId>
getUserSessions()
void
initFromGrantIfNeeded(AuthorizationGrant authorizationGrant)
boolean
isIncludeIdTokenClaims()
static ExecutionContext
of(AuthzRequest authzRequest)
static ExecutionContext
of(jakarta.faces.context.ExternalContext externalContext)
void
setAccessTokenEntity(io.jans.model.token.TokenEntity accessTokenEntity)
void
setAppConfiguration(io.jans.as.model.configuration.AppConfiguration appConfiguration)
void
setAttributeService(io.jans.as.common.service.AttributeService attributeService)
void
setAuditLog(OAuth2AuditLog auditLog)
void
setAuthzDetail(io.jans.as.model.authzdetails.AuthzDetail authzDetail)
void
setAuthzDetails(io.jans.as.model.authzdetails.AuthzDetails authzDetails)
void
setAuthzRequest(AuthzRequest authzRequest)
void
setCertAsPem(String certAsPem)
void
setClaimsAsString(String claimsAsString)
ExecutionContext
setClient(io.jans.as.common.model.registration.Client client)
void
setCurrentSessions(List<io.jans.as.common.model.session.SessionId> currentSessions)
void
setDeviceSecret(String deviceSecret)
void
setDpop(String dpop)
void
setGrant(AuthorizationGrant grant)
void
setHttpRequest(jakarta.servlet.http.HttpServletRequest httpRequest)
void
setHttpResponse(jakarta.servlet.http.HttpServletResponse httpResponse)
void
setIdTokenEntity(io.jans.model.token.TokenEntity idTokenEntity)
void
setIncludeIdTokenClaims(boolean includeIdTokenClaims)
void
setNonce(String nonce)
void
setPostProcessor(Function<io.jans.as.model.token.JsonWebResponse,Void> postProcessor)
void
setPreProcessing(Function<io.jans.as.model.token.JsonWebResponse,Void> preProcessing)
void
setRefreshTokenEntity(io.jans.model.token.TokenEntity refreshTokenEntity)
void
setResponseBuilder(jakarta.ws.rs.core.Response.ResponseBuilder responseBuilder)
void
setScopes(Set<String> scopes)
void
setScript(io.jans.model.custom.script.conf.CustomScriptConfiguration script)
void
setSessionId(io.jans.as.common.model.session.SessionId sessionId)
void
setState(String state)
void
setUser(io.jans.as.common.model.common.User user)
void
setUserSessions(List<io.jans.as.common.model.session.SessionId> userSessions)
-
-
-
Method Detail
-
of
public static ExecutionContext of(AuthzRequest authzRequest)
-
of
public static ExecutionContext of(jakarta.faces.context.ExternalContext externalContext)
-
getAuthzDetails
public io.jans.as.model.authzdetails.AuthzDetails getAuthzDetails()
-
setAuthzDetails
public void setAuthzDetails(io.jans.as.model.authzdetails.AuthzDetails authzDetails)
-
getAuthzDetail
public io.jans.as.model.authzdetails.AuthzDetail getAuthzDetail()
-
setAuthzDetail
public void setAuthzDetail(io.jans.as.model.authzdetails.AuthzDetail authzDetail)
-
getAuthzRequest
public AuthzRequest getAuthzRequest()
-
setAuthzRequest
public void setAuthzRequest(AuthzRequest authzRequest)
-
getUser
public io.jans.as.common.model.common.User getUser()
-
setUser
public void setUser(io.jans.as.common.model.common.User user)
-
getCurrentSessions
public List<io.jans.as.common.model.session.SessionId> getCurrentSessions()
-
setCurrentSessions
public void setCurrentSessions(List<io.jans.as.common.model.session.SessionId> currentSessions)
-
getSessionId
public io.jans.as.common.model.session.SessionId getSessionId()
-
setSessionId
public void setSessionId(io.jans.as.common.model.session.SessionId sessionId)
-
getDeviceSecret
public String getDeviceSecret()
-
setDeviceSecret
public void setDeviceSecret(String deviceSecret)
-
getHttpRequest
public jakarta.servlet.http.HttpServletRequest getHttpRequest()
-
getHttpResponse
public jakarta.servlet.http.HttpServletResponse getHttpResponse()
-
getAuditLog
public OAuth2AuditLog getAuditLog()
-
setAuditLog
public void setAuditLog(OAuth2AuditLog auditLog)
-
getClient
public io.jans.as.common.model.registration.Client getClient()
-
setClient
public ExecutionContext setClient(io.jans.as.common.model.registration.Client client)
-
setHttpRequest
public void setHttpRequest(jakarta.servlet.http.HttpServletRequest httpRequest)
-
setHttpResponse
public void setHttpResponse(jakarta.servlet.http.HttpServletResponse httpResponse)
-
getGrant
public AuthorizationGrant getGrant()
-
setGrant
public void setGrant(AuthorizationGrant grant)
-
getAppConfiguration
public io.jans.as.model.configuration.AppConfiguration getAppConfiguration()
-
setAppConfiguration
public void setAppConfiguration(io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
getAttributeService
public io.jans.as.common.service.AttributeService getAttributeService()
-
setAttributeService
public void setAttributeService(io.jans.as.common.service.AttributeService attributeService)
-
getScript
public io.jans.model.custom.script.conf.CustomScriptConfiguration getScript()
-
setScript
public void setScript(io.jans.model.custom.script.conf.CustomScriptConfiguration script)
-
getIdTokenEntity
public io.jans.model.token.TokenEntity getIdTokenEntity()
-
setIdTokenEntity
public void setIdTokenEntity(io.jans.model.token.TokenEntity idTokenEntity)
-
getAccessTokenEntity
public io.jans.model.token.TokenEntity getAccessTokenEntity()
-
setAccessTokenEntity
public void setAccessTokenEntity(io.jans.model.token.TokenEntity accessTokenEntity)
-
getRefreshTokenEntity
public io.jans.model.token.TokenEntity getRefreshTokenEntity()
-
setRefreshTokenEntity
public void setRefreshTokenEntity(io.jans.model.token.TokenEntity refreshTokenEntity)
-
getDpop
public String getDpop()
-
setDpop
public void setDpop(String dpop)
-
getCertAsPem
public String getCertAsPem()
-
setCertAsPem
public void setCertAsPem(String certAsPem)
-
isIncludeIdTokenClaims
public boolean isIncludeIdTokenClaims()
-
setIncludeIdTokenClaims
public void setIncludeIdTokenClaims(boolean includeIdTokenClaims)
-
setPreProcessing
public void setPreProcessing(Function<io.jans.as.model.token.JsonWebResponse,Void> preProcessing)
-
setPostProcessor
public void setPostProcessor(Function<io.jans.as.model.token.JsonWebResponse,Void> postProcessor)
-
getClaimsAsString
public String getClaimsAsString()
-
setClaimsAsString
public void setClaimsAsString(String claimsAsString)
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getUserSessions
public List<io.jans.as.common.model.session.SessionId> getUserSessions()
-
setUserSessions
public void setUserSessions(List<io.jans.as.common.model.session.SessionId> userSessions)
-
getResponseBuilder
public jakarta.ws.rs.core.Response.ResponseBuilder getResponseBuilder()
-
setResponseBuilder
public void setResponseBuilder(jakarta.ws.rs.core.Response.ResponseBuilder responseBuilder)
-
initFromGrantIfNeeded
public void initFromGrantIfNeeded(AuthorizationGrant authorizationGrant)
-
-