Class IdSecurity
java.lang.Object
com.io7m.idstore.server.security.IdSecurity
The main API for performing security policy checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdSecPolicyResultTypecheck(IdSecActionType action) Check that a user is allowed to perform an action by the current policy.static voidsetPolicy(IdSecPolicyType policy) Set the currently loaded policy.
-
Method Details
-
setPolicy
Set the currently loaded policy.- Parameters:
policy- The policy
-
check
Check that a user is allowed to perform an action by the current policy.- Parameters:
action- The action- Returns:
- A value indicating if the action is permitted
- Throws:
IdSecurityException- On evaluation errors
-