com.holonplatform.spring.security.internal

## Class PermissionGrantedAuthority

- java.lang.Object
- - com.holonplatform.spring.security.internal.PermissionGrantedAuthority

- All Implemented Interfaces:
    Serializable, org.springframework.security.core.GrantedAuthority

      public class PermissionGrantedAuthority
      extends Object
      implements org.springframework.security.core.GrantedAuthority

  A `GrantedAuthority` using a `Permission` as concrete representation.
  Since:
    5.1.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PermissionGrantedAuthority(Permission permission)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `String` | `getAuthority()`
    `int` | `hashCode()`
    `String` | `toString()`

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

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PermissionGrantedAuthority

          public PermissionGrantedAuthority(Permission permission)

      Constructor.
      Parameters:
        `permission` - The permission (not null)

  - ### Method Detail

    - #### getAuthority

          public String getAuthority()

      Specified by:
        `getAuthority` in interface `org.springframework.security.core.GrantedAuthority`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

Copyright © 2019 The Holon Platform. All rights reserved.