org.keycloak.adapters.tomcat7

## Class SimplePrincipal

- java.lang.Object
- - org.keycloak.adapters.tomcat7.SimplePrincipal

- All Implemented Interfaces:
    Serializable, Principal
  Direct Known Subclasses:
    SimpleGroup

      public class SimplePrincipal
      extends Object
      implements Principal, Serializable

  Simple security principal implementation.
  Since:
    3.1.11
  Version:
    $Revision: 22071 $
  Author:
    Marvin S. Addison
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimplePrincipal(String name)` Creates a new principal with the given name.

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### SimplePrincipal

          public SimplePrincipal(String name)

      Creates a new principal with the given name.
      Parameters:
        `name` - Principal name.

  - ### Method Detail

    - #### getName

          public final String getName()

      Specified by:
        `getName` in interface `Principal`

    - #### toString

          public String toString()

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

    - #### equals

          public boolean equals(Object o)

      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`

Copyright © 2014. All Rights Reserved.