Interface HvlAuthzSessionService
- All Known Implementing Classes:
HvlAuthzDefaultSessionServiceImpl
,HvlAuthzJwtSessionServiceImpl
@Validated
public interface HvlAuthzSessionService
This service provides operational and retrieve methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close all session by username.void
Close all session by username list.fillWithAuthority
(@NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) The method fills session with acquired roles of profile.getUserInfo
(@NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.
-
Method Details
-
fillWithAuthority
HvlOAuthSessionModel fillWithAuthority(@NotNull @Valid @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) throws HvlAuthzSessionServiceException The method fills session with acquired roles of profile.- Parameters:
profileAcquiredRolePredicateModel
- the profile acquired role predicate model- Returns:
- the authz session model
- Throws:
HvlAuthzSessionServiceException
- the hvl authz session service exception
-
closeAll
Close all session by username.- Parameters:
username
- the username
-
closeAll
Close all session by username list.- Parameters:
usernameSet
- the username set
-
getUserInfo
HvlOAuthUserInfoDataModel getUserInfo(@NotNull @NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.- Parameters:
userInfoPredicateModel
- the user info predicate model- Returns:
- the user info data model
-