Class AuthUser

java.lang.Object
com.google.gerrit.server.auth.AuthUser

public class AuthUser extends Object
An authenticated user as specified by the AuthBackend.
  • Constructor Details

    • AuthUser

      public AuthUser(AuthUser.UUID uuid, String username)
      An authenticated user.
      Parameters:
      uuid - the globally unique ID.
      username - the name of the authenticated user.
  • Method Details

    • getUUID

      public final AuthUser.UUID getUUID()
      Returns the globally unique identifier.
    • getUsername

      public final String getUsername()
      Returns the backend specific user name, or null if one does not exist.
    • hasUsername

      public final boolean hasUsername()
      Returns true if getUsername() is not null.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object