org.keycloak.adapters.jaas

## Class RolePrincipal

- java.lang.Object
- - org.keycloak.adapters.jaas.RolePrincipal

- All Implemented Interfaces:
    Serializable, Principal

      public class RolePrincipal
      extends Object
      implements Principal, Serializable

  Author:
    Marek Posolda
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RolePrincipal(String roleName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object p)`
    `String` | `getName()`
    `int` | `hashCode()`
    `String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### RolePrincipal

          public RolePrincipal(String roleName)

  - ### Method Detail

    - #### equals

          public boolean equals(Object p)

      Specified by:
        `equals` in interface `Principal`
      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in interface `Principal`
      Overrides:
        `hashCode` in class `Object`

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `Principal`

    - #### toString

          public String toString()

      Specified by:
        `toString` in interface `Principal`
      Overrides:
        `toString` in class `Object`

Copyright © 2015. All Rights Reserved.