public interface UserState
Modifier and Type | Interface and Description |
---|---|
static class |
UserState.Factory
A factory for creating a UserState.
|
Modifier and Type | Field and Description |
---|---|
static ArrayList<UserStateFactory> |
FACTORIES
An ordered list of factories for creating UserState instances.
|
Modifier and Type | Method and Description |
---|---|
Subject |
getSubject()
Returns the Subject for this user.
|
User |
getUser()
Returns the User object for this user.
|
User |
relogin()
Attempts to log in again, and returns the new User.
|
default void |
update(UserState otherUserState)
Use a new user state to update the credentials in the current user state.
|
static final ArrayList<UserStateFactory> FACTORIES
Subject getSubject()
Subject
for this user stateUser getUser() throws UnauthenticatedException
User
for this user stateUnauthenticatedException
- if the attempted login failedUser relogin() throws UnauthenticatedException
User
for this user state, after the reloginUnauthenticatedException
- if the re-login faileddefault void update(UserState otherUserState) throws IOException
otherUserState
- the new user state for credentials updateIOException
Copyright © 2023. All Rights Reserved.