U - User profile to work with.public interface AuthStore<U extends org.pac4j.core.profile.UserProfile>
UserProfile.| Modifier and Type | Method and Description |
|---|---|
Optional<U> |
get(String id)
Call it after a successful authentication in order to restore an
UserProfile. |
void |
set(U profile)
Call it after a successful authentication in order to store an
UserProfile. |
Optional<U> |
unset(String id)
Call it on logout in order to remove an
UserProfile from the store. |
Optional<U> get(String id) throws Exception
UserProfile. If
profile is present, no authentication is required because user was already authenticated.id - ID of the profile to restore.UserProfile.Exception - If restore fails.void set(U profile) throws Exception
UserProfile. The user
was successfully authenticated and we want to save it somewhere.profile - Profile to store.Exception - If store fails.Copyright © 2016. All rights reserved.