| Modifier and Type | Field and Description |
|---|---|
static String |
USER_PROFILE |
| Constructor and Description |
|---|
AuthSessionStore(javax.inject.Provider<Session> session) |
| Modifier and Type | Method and Description |
|---|---|
Optional<U> |
get(String id)
Call it after a successful authentication in order to restore an
CommonProfile. |
void |
set(U profile)
Call it after a successful authentication in order to store an
CommonProfile. |
Optional<U> |
unset(String id)
Call it on logout in order to remove an
CommonProfile from the store. |
public static final String USER_PROFILE
@Inject public AuthSessionStore(javax.inject.Provider<Session> session)
public Optional<U> get(String id) throws Exception
AuthStoreCommonProfile. If
profile is present, no authentication is required because user was already authenticated.public void set(U profile) throws Exception
AuthStoreCommonProfile. The user
was successfully authenticated and we want to save it somewhere.Copyright © 2017. All rights reserved.