Class SecurityEnforcerUtil

java.lang.Object
com.evolveum.midpoint.security.enforcer.api.SecurityEnforcerUtil

public class SecurityEnforcerUtil extends Object
  • Constructor Details

    • SecurityEnforcerUtil

      public SecurityEnforcerUtil()
  • Method Details

    • getAuthorizations

      @NotNull public static @NotNull Collection<Authorization> getAuthorizations(@Nullable @Nullable MidPointPrincipal principal)
      Returns authorizations for the given principal, or from the current security context. Quite weird method: the principal should (mostly) come from the security context as well, but not necessarily. This is quite a hack to avoid duplicating this functionality in different places.