org.keycloak

## Class AuthorizationContext

- java.lang.Object
- - org.keycloak.AuthorizationContext

-     public class AuthorizationContext
      extends Object

  Author:
    Pedro Igor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthorizationContext()`
    `AuthorizationContext(AccessToken authzToken, List<PolicyEnforcerConfig.PathConfig> paths)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<Permission>` | `getPermissions()`
    `boolean` | `hasPermission(String resourceName, String scopeName)`
    `boolean` | `hasResourcePermission(String resourceName)`
    `boolean` | `hasScopePermission(String scopeName)`
    `boolean` | `isGranted()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthorizationContext

          public AuthorizationContext(AccessToken authzToken,
                                      List<PolicyEnforcerConfig.PathConfig> paths)

    - #### AuthorizationContext

          public AuthorizationContext()

  - ### Method Detail

    - #### hasPermission

          public boolean hasPermission(String resourceName,
                                       String scopeName)

    - #### hasResourcePermission

          public boolean hasResourcePermission(String resourceName)

    - #### hasScopePermission

          public boolean hasScopePermission(String scopeName)

    - #### getPermissions

          public List<Permission> getPermissions()

    - #### isGranted

          public boolean isGranted()

Copyright © 2016 JBoss by Red Hat. All rights reserved.