kaos.core.csi.policy
Interface PolicyChecking

All Superinterfaces:
AuthorizationPolicyDisclosure, ObligationPolicyDisclosure
All Known Implementing Classes:
PolicyCheckingImpl

public interface PolicyChecking
extends AuthorizationPolicyDisclosure, ObligationPolicyDisclosure

Defines the operations to check permissions, get obligations, analyze policies, etc.


Method Summary
 void checkPermission(java.lang.String actorID, java.lang.String attemptedActionName, java.util.HashMap actionProperties)
          The method check if the given action is permitted according to the current set of policies.
 
Methods inherited from interface kaos.policy.query.AuthorizationPolicyDisclosure
checkPermission, getAllowableValuesForActionProperties, getAllowableValuesForActionProperties, getAllowableValuesForActionProperty, getPoliciesForActionType
 
Methods inherited from interface kaos.policy.query.ObligationPolicyDisclosure
getObligationsForTriggerCondition
 

Method Detail

checkPermission

void checkPermission(java.lang.String actorID,
                     java.lang.String attemptedActionName,
                     java.util.HashMap actionProperties)
                     throws KAoSSecurityException,
                            java.lang.NullPointerException,
                            ServiceFailure
The method check if the given action is permitted according to the current set of policies.

Parameters:
actorID - String containing the id of the policy actor.
attemptedActionName - String containing the ontological name of the attempted action.
actionProperties - HashMap containing the ontological names and their values of properties of the attempted action.
Throws:
KAoSSecurityException - if the action is not allowed.
java.lang.NullPointerException - if the Permission argument is null.
ServiceFailure - if the policy service is not available.