Class SecurityHelper
java.lang.Object
com.evolveum.midpoint.model.impl.security.SecurityHelper
- All Implemented Interfaces:
ModelAuditRecorder
- Author:
- semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
auditLoginFailure
(@Nullable String username, @Nullable FocusType focus, @NotNull ConnectionEnvironment connEnv, String message) void
auditLoginSuccess
(@NotNull ObjectType object, @NotNull ConnectionEnvironment connEnv) void
auditLogout
(ConnectionEnvironment connEnv, Task task, OperationResult result) <F extends FocusType>
SecurityPolicyTypelocateGlobalSecurityPolicy
(PrismObject<F> focus, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) locateProjectionSecurityPolicy
(ResourceObjectDefinition structuralObjectClassDefinition, Task task, OperationResult result) <F extends FocusType>
SecurityPolicyTypelocateSecurityPolicy
(PrismObject<F> focus, String archetypeOid, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) Returns security policy applicable for the specified focus if specified.
-
Constructor Details
-
SecurityHelper
public SecurityHelper()
-
-
Method Details
-
auditLoginSuccess
public void auditLoginSuccess(@NotNull @NotNull ObjectType object, @NotNull @NotNull ConnectionEnvironment connEnv) - Specified by:
auditLoginSuccess
in interfaceModelAuditRecorder
-
auditLoginFailure
public void auditLoginFailure(@Nullable @Nullable String username, @Nullable @Nullable FocusType focus, @NotNull @NotNull ConnectionEnvironment connEnv, String message) - Specified by:
auditLoginFailure
in interfaceModelAuditRecorder
-
auditLogout
- Specified by:
auditLogout
in interfaceModelAuditRecorder
-
locateSecurityPolicy
public <F extends FocusType> SecurityPolicyType locateSecurityPolicy(PrismObject<F> focus, String archetypeOid, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Returns security policy applicable for the specified focus if specified. It looks for organization, archetype and global policies and takes into account deprecated properties and password policy references. The resulting security policy has all the (non-deprecated) properties set. If there is also referenced value policy, it is will be stored as "object" in the value policy reference inside the returned security policy. If no focus is specified, returns the security policy referenced with the archetype and merged with the global security policy -
locateGlobalSecurityPolicy
public <F extends FocusType> SecurityPolicyType locateGlobalSecurityPolicy(PrismObject<F> focus, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) throws CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException -
locateProjectionSecurityPolicy
public SecurityPolicyType locateProjectionSecurityPolicy(ResourceObjectDefinition structuralObjectClassDefinition, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException -
getSecurityEnforcer
-