Interface AuthorizationService

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AuthorizationService

A service to query for user roles.

  • Method Details

    • getUserIdentity

      UserIdentity getUserIdentity(jakarta.servlet.http.HttpServletRequest request, String name)
      request - the current HTTP request
      name - the user name
      a UserIdentity to query for roles of the given user
    • from

      static AuthorizationService from(LoginService loginService, Object credentials)

      Wraps a LoginService as an AuthorizationService

      loginService - the LoginService to wrap
      an AuthorizationService that delegates the query for roles to the given LoginService