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, java.util.Map<Scope,java.lang.Boolean> scopes, java.util.Set<io.jans.as.model.uma.persistence.UmaResource> resources, Claims claims, java.lang.String scriptDn, jakarta.servlet.http.HttpServletRequest httpRequest, java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> configurationAttributes, UmaSessionService sessionService, UmaPermissionService permissionService, io.jans.as.common.model.registration.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRedirectUserParam(java.lang.String paramName, java.lang.String paramValue)
java.lang.Object
getClaim(java.lang.String claimName)
Claims
getClaims()
java.lang.String
getClaimToken()
java.lang.Object
getClaimTokenClaim(java.lang.String key)
io.jans.as.common.model.registration.Client
getClient()
java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty>
getConfigurationAttributes()
java.lang.String
getIssuer()
java.lang.Object
getPctClaim(java.lang.String key)
java.util.List<io.jans.as.model.uma.persistence.UmaPermission>
getPermissions()
RedirectParameters
getRedirectUserParameters()
java.util.Map<java.lang.String,java.util.Set<java.lang.String>>
getRedirectUserParametersMap()
java.util.Set<java.lang.String>
getResourceIds()
java.util.Set<io.jans.as.model.uma.persistence.UmaResource>
getResources()
java.util.Map<Scope,java.lang.Boolean>
getScopeMap()
java.util.Set<java.lang.String>
getScopes()
java.lang.String
getScriptDn()
java.util.Set<java.lang.String>
getScriptScopes()
io.jans.as.common.model.common.User
getUser()
java.lang.String
getUserDn()
boolean
hasClaim(java.lang.String claimName)
boolean
isAuthenticated()
void
putClaim(java.lang.String claimName, java.lang.Object claimValue)
void
removeClaim(java.lang.String claimName)
void
removeRedirectUserParameter(java.lang.String paramName)
-
Methods inherited from class io.jans.as.server.service.external.context.ExternalScriptContext
createWebApplicationException, createWebApplicationException, getEntryAttributeValue, getEntryByDn, getPersistenceEntryManager, getWebApplicationException, isInNetwork, setWebApplicationException, throwWebApplicationExceptionIfSet
-
-
-
-
Constructor Detail
-
UmaAuthorizationContext
public UmaAuthorizationContext(io.jans.as.model.configuration.AppConfiguration configuration, java.util.Map<Scope,java.lang.Boolean> scopes, java.util.Set<io.jans.as.model.uma.persistence.UmaResource> resources, Claims claims, java.lang.String scriptDn, jakarta.servlet.http.HttpServletRequest httpRequest, java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> configurationAttributes, UmaSessionService sessionService, UmaPermissionService permissionService, io.jans.as.common.model.registration.Client client)
-
-
Method Detail
-
getClaimToken
public java.lang.String getClaimToken()
-
getClaimTokenClaim
public java.lang.Object getClaimTokenClaim(java.lang.String key)
-
getPctClaim
public java.lang.Object getPctClaim(java.lang.String key)
-
getIssuer
public java.lang.String getIssuer()
-
getScriptDn
public java.lang.String getScriptDn()
-
getConfigurationAttributes
public java.util.Map<java.lang.String,io.jans.model.SimpleCustomProperty> getConfigurationAttributes()
-
getScopes
public java.util.Set<java.lang.String> getScopes()
-
getScriptScopes
public java.util.Set<java.lang.String> getScriptScopes()
- Returns:
- scopes that are bound to currently executed script
-
getScopeMap
public java.util.Map<Scope,java.lang.Boolean> getScopeMap()
-
getResources
public java.util.Set<io.jans.as.model.uma.persistence.UmaResource> getResources()
-
getResourceIds
public java.util.Set<java.lang.String> getResourceIds()
-
getClaims
public Claims getClaims()
-
getClaim
public java.lang.Object getClaim(java.lang.String claimName)
-
putClaim
public void putClaim(java.lang.String claimName, java.lang.Object claimValue)
-
hasClaim
public boolean hasClaim(java.lang.String claimName)
-
removeClaim
public void removeClaim(java.lang.String claimName)
-
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()
-
getUser
public io.jans.as.common.model.common.User getUser()
-
isAuthenticated
public boolean isAuthenticated()
-
getUserDn
public java.lang.String getUserDn()
-
getClient
public io.jans.as.common.model.registration.Client getClient()
-
getPermissions
public java.util.List<io.jans.as.model.uma.persistence.UmaPermission> getPermissions()
-
-