Class SecurityPolicyFinder
java.lang.Object
com.evolveum.midpoint.repo.common.security.SecurityPolicyFinder
Looks up security policies.
== Exception reporting
If the security policy cannot be obtained, methods in this class throw a
SystemException
instead of specific
exceptions like ObjectNotFoundException
etc. The reason is that from the point of view of a regular caller,
the inability to obtain the security policy is a generic system-level issue.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable SecurityPolicyType
locateGlobalSecurityPolicy
(@Nullable PrismObject<SystemConfigurationType> systemConfiguration, boolean resolveValueRefs, OperationResult result) Returns global security policy; optionally resolves value policy references.locateResourceObjectCredentialsPolicy
(@NotNull ResourceObjectDefinition objectDefinition, OperationResult result) @Nullable SecurityPolicyType
locateResourceObjectSecurityPolicyLegacy
(@NotNull ResourceObjectDefinition objectDefinition, @NotNull OperationResult result) Returns security policy related to the projection, resolved in the *legacy* way.void
resolveValuePolicyRefs
(SecurityPolicyType securityPolicy, OperationResult result)
-
Constructor Details
-
SecurityPolicyFinder
public SecurityPolicyFinder()
-
-
Method Details
-
locateGlobalSecurityPolicy
@Nullable public @Nullable SecurityPolicyType locateGlobalSecurityPolicy(@Nullable @Nullable PrismObject<SystemConfigurationType> systemConfiguration, boolean resolveValueRefs, OperationResult result) Returns global security policy; optionally resolves value policy references. -
locateResourceObjectSecurityPolicyLegacy
@Nullable public @Nullable SecurityPolicyType locateResourceObjectSecurityPolicyLegacy(@NotNull @NotNull ResourceObjectDefinition objectDefinition, @NotNull @NotNull OperationResult result) Returns security policy related to the projection, resolved in the *legacy* way. - The global security policy is ignored. - Value policy references in the returned object are resolved. -
resolveValuePolicyRefs
-
locateResourceObjectCredentialsPolicy
public CredentialsPolicyType locateResourceObjectCredentialsPolicy(@NotNull @NotNull ResourceObjectDefinition objectDefinition, OperationResult result)
-