Package com.io7m.idstore.server.security
Class IdSecPolicyDefault
java.lang.Object
com.io7m.idstore.server.security.IdSecPolicyDefault
- All Implemented Interfaces:
IdSecPolicyType
The default security policy.
-
Method Summary
Modifier and TypeMethodDescriptioncheck
(IdSecActionType action) Check that a user is allowed to perform an action by the current policy.static IdSecPolicyType
get()
-
Method Details
-
get
- Returns:
- A reference to this policy
-
check
Description copied from interface:IdSecPolicyType
Check that a user is allowed to perform an action by the current policy.- Specified by:
check
in interfaceIdSecPolicyType
- Parameters:
action
- The action- Returns:
- A value indicating if the action is permitted
-