Class SecurityEnforcerUtil
java.lang.Object
com.evolveum.midpoint.security.enforcer.api.SecurityEnforcerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Collection<Authorization>
getAuthorizations
(@Nullable MidPointPrincipal principal) Returns authorizations for the given principal, or from the current security context.
-
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.
-