Package com.google.gerrit.server.auth
Class AuthUser
java.lang.Object
com.google.gerrit.server.auth.AuthUser
An authenticated user as specified by the AuthBackend.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Globally unique identifier for the user. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
final String
Returns the backend specific user name, or null if one does not exist.final AuthUser.UUID
getUUID()
Returns the globally unique identifier.int
hashCode()
final boolean
Returnstrue
ifgetUsername()
is not null.toString()
-
Constructor Details
-
AuthUser
An authenticated user.- Parameters:
uuid
- the globally unique ID.username
- the name of the authenticated user.
-
-
Method Details
-
getUUID
Returns the globally unique identifier. -
getUsername
Returns the backend specific user name, or null if one does not exist. -
hasUsername
public final boolean hasUsername()Returnstrue
ifgetUsername()
is not null. -
equals
-
hashCode
public int hashCode() -
toString
-