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