Class UmaAuthorizationContext
- java.lang.Object
-
- io.jans.service.external.context.ExternalScriptContext
-
- io.jans.as.server.service.external.context.ExternalScriptContext
-
- io.jans.as.server.uma.authorization.UmaAuthorizationContext
-
public class UmaAuthorizationContext extends ExternalScriptContext
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum, Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description UmaAuthorizationContext(io.jans.as.model.configuration.AppConfiguration configuration, Map<Scope,Boolean> scopes, Set<io.jans.as.model.uma.persistence.UmaResource> resources, Claims claims, String scriptDn, jakarta.servlet.http.HttpServletRequest httpRequest, Map<String,io.jans.model.SimpleCustomProperty> configurationAttributes, UmaSessionService sessionService, UmaPermissionService permissionService, io.jans.as.common.model.registration.Client client)
-
Method Summary
-
Methods inherited from class io.jans.as.server.service.external.context.ExternalScriptContext
createWebApplicationException, createWebApplicationException, getAuthzDetail, getAuthzRequest, getEntryAttributeValue, getEntryByDn, getExecutionContext, getPersistenceEntryManager, getWebApplicationException, isInNetwork, setWebApplicationException, throwWebApplicationExceptionIfSet
-
-
-
-
Constructor Detail
-
UmaAuthorizationContext
public UmaAuthorizationContext(io.jans.as.model.configuration.AppConfiguration configuration, Map<Scope,Boolean> scopes, Set<io.jans.as.model.uma.persistence.UmaResource> resources, Claims claims, String scriptDn, jakarta.servlet.http.HttpServletRequest httpRequest, Map<String,io.jans.model.SimpleCustomProperty> configurationAttributes, UmaSessionService sessionService, UmaPermissionService permissionService, io.jans.as.common.model.registration.Client client)
-
-
Method Detail
-
getClaimToken
public String getClaimToken()
-
getIssuer
public String getIssuer()
-
getScriptDn
public String getScriptDn()
-
getConfigurationAttributes
public Map<String,io.jans.model.SimpleCustomProperty> getConfigurationAttributes()
-
getScriptScopes
public Set<String> getScriptScopes()
- Returns:
- scopes that are bound to currently executed script
-
getResources
public Set<io.jans.as.model.uma.persistence.UmaResource> getResources()
-
getClaims
public Claims getClaims()
-
hasClaim
public boolean hasClaim(String claimName)
-
removeClaim
public void removeClaim(String claimName)
-
removeRedirectUserParameter
public void removeRedirectUserParameter(String paramName)
-
getRedirectUserParameters
public RedirectParameters getRedirectUserParameters()
-
getUser
public io.jans.as.common.model.common.User getUser()
-
isAuthenticated
public boolean isAuthenticated()
-
getUserDn
public String getUserDn()
-
getClient
public io.jans.as.common.model.registration.Client getClient()
-
getPermissions
public List<io.jans.as.model.uma.persistence.UmaPermission> getPermissions()
-
-