Class UmaGatherContext
- java.lang.Object
-
- io.jans.service.external.context.ExternalScriptContext
-
- io.jans.as.server.service.external.context.ExternalScriptContext
-
- io.jans.as.server.uma.authorization.UmaGatherContext
-
public class UmaGatherContext extends ExternalScriptContext
- Version:
- August 9, 2017
- Author:
- yuriyz
-
-
Constructor Summary
Constructors Constructor Description UmaGatherContext(java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> configurationAttributes, jakarta.servlet.http.HttpServletRequest httpRequest, SessionId session, UmaSessionService sessionService, UmaPermissionService permissionService, UmaPctService pctService, java.util.Map<java.lang.String,java.lang.String> pageClaims, io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRedirectUserParam(java.lang.String paramName, java.lang.String paramValue)
void
addSessionAttribute(java.lang.String key, java.lang.String value)
java.lang.String
getAuthorizationEndpoint()
java.lang.String
getBaseEndpoint()
java.lang.Object
getClaim(java.lang.String claimName)
io.jans.as.model.jwt.JwtClaims
getClaims()
java.lang.String
getClaimsGatheringEndpoint()
io.jans.as.common.model.registration.Client
getClient()
java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty>
getConfigurationAttributes()
java.util.Map<java.lang.String,java.lang.String>
getConnectSessionAttributes()
java.lang.String
getIssuer()
java.util.Map<java.lang.String,java.lang.String>
getPageClaims()
java.util.List<io.jans.as.model.uma.persistence.UmaPermission>
getPermissions()
java.lang.String
getRedirectToExternalUrl()
RedirectParameters
getRedirectUserParameters()
java.util.Map<java.lang.String,java.util.Set<java.lang.String>>
getRedirectUserParametersMap()
java.util.Map<java.lang.String,java.lang.String[]>
getRequestParameters()
java.util.Map<java.lang.String,java.lang.String>
getSessionAttributes()
int
getStep()
io.jans.as.common.model.common.User
getUser()
java.lang.String
getUserDn()
boolean
hasClaim(java.lang.String claimName)
boolean
isAuthenticated()
void
persist()
Must not take any parametersvoid
putClaim(java.lang.String claimName, java.lang.Object claimValue)
void
redirectToExternalUrl(java.lang.String url)
void
removeClaim(java.lang.String claimName)
void
removeRedirectUserParameter(java.lang.String paramName)
void
removeSessionAttribute(java.lang.String key)
void
setStep(int step)
-
Methods inherited from class io.jans.as.server.service.external.context.ExternalScriptContext
createWebApplicationException, getEntryAttributeValue, getEntryByDn, getPersistenceEntryManager, getWebApplicationException, isInNetwork, setWebApplicationException, throwWebApplicationExceptionIfSet
-
-
-
-
Constructor Detail
-
UmaGatherContext
public UmaGatherContext(java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> configurationAttributes, jakarta.servlet.http.HttpServletRequest httpRequest, SessionId session, UmaSessionService sessionService, UmaPermissionService permissionService, UmaPctService pctService, java.util.Map<java.lang.String,java.lang.String> pageClaims, io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
-
Method Detail
-
getConfigurationAttributes
public java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> getConfigurationAttributes()
-
getUser
public io.jans.as.common.model.common.User getUser()
-
getUserDn
public java.lang.String getUserDn()
-
getClient
public io.jans.as.common.model.registration.Client getClient()
-
getConnectSessionAttributes
public java.util.Map<java.lang.String,java.lang.String> getConnectSessionAttributes()
-
isAuthenticated
public boolean isAuthenticated()
-
getPageClaims
public java.util.Map<java.lang.String,java.lang.String> getPageClaims()
-
getRequestParameters
public java.util.Map<java.lang.String,java.lang.String[]> getRequestParameters()
-
getStep
public int getStep()
-
setStep
public void setStep(int step)
-
addSessionAttribute
public void addSessionAttribute(java.lang.String key, java.lang.String value)
-
removeSessionAttribute
public void removeSessionAttribute(java.lang.String key)
-
getSessionAttributes
public java.util.Map<java.lang.String,java.lang.String> getSessionAttributes()
-
addRedirectUserParam
public void addRedirectUserParam(java.lang.String paramName, java.lang.String paramValue)
-
removeRedirectUserParameter
public void removeRedirectUserParameter(java.lang.String paramName)
-
getRedirectUserParameters
public RedirectParameters getRedirectUserParameters()
-
getRedirectUserParametersMap
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRedirectUserParametersMap()
-
getPermissions
public java.util.List<io.jans.as.model.uma.persistence.UmaPermission> getPermissions()
-
getClaims
public io.jans.as.model.jwt.JwtClaims getClaims()
-
getClaim
public java.lang.Object getClaim(java.lang.String claimName)
-
putClaim
public void putClaim(java.lang.String claimName, java.lang.Object claimValue)
-
removeClaim
public void removeClaim(java.lang.String claimName)
-
hasClaim
public boolean hasClaim(java.lang.String claimName)
-
persist
public void persist()
Must not take any parameters
-
redirectToExternalUrl
public void redirectToExternalUrl(java.lang.String url)
-
getRedirectToExternalUrl
public java.lang.String getRedirectToExternalUrl()
-
getAuthorizationEndpoint
public java.lang.String getAuthorizationEndpoint()
-
getIssuer
public java.lang.String getIssuer()
-
getBaseEndpoint
public java.lang.String getBaseEndpoint()
-
getClaimsGatheringEndpoint
public java.lang.String getClaimsGatheringEndpoint()
-
-