public abstract class BaseUserState extends Object implements UserState
UserState
.UserState.Factory
Modifier and Type | Field and Description |
---|---|
protected AlluxioConfiguration |
mConf |
protected Subject |
mSubject |
protected User |
mUser |
Constructor and Description |
---|
BaseUserState(Subject subject,
AlluxioConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Subject |
getSubject()
Returns the Subject for this user.
|
User |
getUser()
Returns the User object for this user.
|
int |
hashCode() |
protected abstract User |
login() |
User |
relogin()
Attempts to log in again, and returns the new User.
|
protected final Subject mSubject
protected volatile User mUser
protected AlluxioConfiguration mConf
public BaseUserState(Subject subject, AlluxioConfiguration conf)
subject
- the subjectconf
- the Alluxio configurationpublic Subject getSubject()
UserState
getSubject
in interface UserState
Subject
for this user statepublic User getUser() throws UnauthenticatedException
UserState
getUser
in interface UserState
User
for this user stateUnauthenticatedException
- if the attempted login failedprotected abstract User login() throws UnauthenticatedException
UnauthenticatedException
public User relogin() throws UnauthenticatedException
UserState
relogin
in interface UserState
User
for this user state, after the reloginUnauthenticatedException
- if the re-login failedCopyright © 2023. All Rights Reserved.