Class SecurityEnforcerUtil


  • public class SecurityEnforcerUtil
    extends Object
    • Constructor Detail

      • SecurityEnforcerUtil

        public SecurityEnforcerUtil()
    • Method Detail

      • 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.