Interface AuthorizationInterceptor

  • All Superinterfaces:
    ServiceInterceptor

    public interface AuthorizationInterceptor
    extends ServiceInterceptor
    Create an event bus service interceptor that will provide an authorization check
    • Method Detail

      • setAuthorizations

        AuthorizationInterceptor setAuthorizations​(Set<Authorization> authorizations)
        Set the required authorities for the service, once a JWT is validated it will be queried for these authorities. If authorities are missing a error 403 is returned.
        Parameters:
        authorizations - set of authorities
        Returns:
        self
      • addAuthorization

        AuthorizationInterceptor addAuthorization​(Authorization authorization)
        Add a single authority to the authorities set.
        Parameters:
        authorization - authority
        Returns:
        self