org.apache.tinkerpop.gremlin.server.auth

## Class AuthenticatedUser

- java.lang.Object
- - org.apache.tinkerpop.gremlin.server.auth.AuthenticatedUser

-     public class AuthenticatedUser
      extends Object

  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static AuthenticatedUser` | `ANONYMOUS_USER`
    `static String` | `ANONYMOUS_USERNAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthenticatedUser(String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getName()`
    `int` | `hashCode()`
    `boolean` | `isAnonymous()` If `Authenticator` doesn't require authentication, this method may return true.
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### ANONYMOUS_USERNAME

          public static final String ANONYMOUS_USERNAME

      See Also:
        Constant Field Values

    - #### ANONYMOUS_USER

          public static final AuthenticatedUser ANONYMOUS_USER

  - ### Constructor Detail

    - #### AuthenticatedUser

          public AuthenticatedUser(String name)

  - ### Method Detail

    - #### getName

          public String getName()

    - #### isAnonymous

          public boolean isAnonymous()

      If `Authenticator` doesn't require authentication, this method may return true.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2013–2020 Apache Software Foundation. All rights reserved.