org.keycloak

## Class AuthorizationContext

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

- Direct Known Subclasses:
    ClientAuthorizationContext

      public class AuthorizationContext
      extends Object

  Author:
    Pedro Igor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthorizationContext()`
    `AuthorizationContext(AccessToken authzToken, PolicyEnforcerConfig.PathConfig current)`

  - ### 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,
                                      PolicyEnforcerConfig.PathConfig current)

    - #### 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 © 2020 JBoss by Red Hat. All rights reserved.