Package org.jboss.resteasy.plugins.server.embedded

## Class SimplePrincipal

- java.lang.Object
- - org.jboss.resteasy.plugins.server.embedded.SimplePrincipal

- All Implemented Interfaces:
    `Principal`

      public class SimplePrincipal
      extends Object
      implements Principal

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SimplePrincipal​(String username)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `String` | `getName()` |
    `int` | `hashCode()` |

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

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

    - ### Methods inherited from interface java.security.Principal

      `implies, toString`

- - ### Constructor Detail

    - #### SimplePrincipal

          public SimplePrincipal​(String username)

  - ### Method Detail

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `Principal`

    - #### 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`