Class RefreshableUser
java.lang.Object
io.fluxzero.sdk.tracking.handling.authentication.RefreshableUser
Mutable holder for a previously resolved user that may be refreshed while handling a message.
The holder itself is kept stable in message context while the contained user can be replaced by a refresh-capable
UserProvider. This lets authorization, User.getCurrent(), and User parameter resolution see
the same refreshed user during a single handling flow.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RefreshableUser
Creates a holder for a previously resolved user.- Parameters:
user- the initial user
-
-
Method Details
-
user
Returns the current user.- Returns:
- the current user, or
nullif no authenticated user is available
-
update
-