Class UmaAuthorizationContext


  • public class UmaAuthorizationContext
    extends ExternalScriptContext
    Author:
    Yuriy Zabrovarnyy, Javier Rojas Blum, Yuriy Movchan
    • 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)
      • 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()