org.keycloak.authorization.permission

## Class ResourcePermission

- java.lang.Object
- - org.keycloak.authorization.permission.ResourcePermission

-     public class ResourcePermission
      extends Object

  Represents a permission for a given resource.
  Author:
    Pedro Igor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResourcePermission(Resource resource, List<Scope> scopes, ResourceServer resourceServer)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | `getResource()` Returns the resource to which this permission applies.
    `ResourceServer` | `getResourceServer()` Returns the resource server associated with this permission.
    `List<Scope>` | `getScopes()` Returns a list of permitted scopes associated with the resource

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

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

- - ### Constructor Detail

    - #### ResourcePermission

          public ResourcePermission(Resource resource,
                                    List<Scope> scopes,
                                    ResourceServer resourceServer)

  - ### Method Detail

    - #### getResource

          public Resource getResource()

      Returns the resource to which this permission applies.
      Returns:
        the resource to which this permission applies

    - #### getScopes

          public List<Scope> getScopes()

      Returns a list of permitted scopes associated with the resource
      Returns:
        a lit of permitted scopes

    - #### getResourceServer

          public ResourceServer getResourceServer()

      Returns the resource server associated with this permission.
      Returns:
        the resource server

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