All Known Implementing Classes:
HvlAuthzDefaultSessionServiceImpl, HvlAuthzJwtSessionServiceImpl

@Validated public interface HvlAuthzSessionService
This service provides operational and retrieve methods.
  • 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

      void closeAll(@NotBlank @NotBlank String username)
      Close all session by username.
      Parameters:
      username - the username
    • closeAll

      void closeAll(@NotNull @NotNull Set<@NotBlank String> usernameSet)
      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