Interface Evaluate
- All Known Implementing Classes:
XACMLPDP
public interface Evaluate
Interface for an evaluation context of ABAC policies based on a PDP
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> subject, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> environment, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> resource, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> operation, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> xacmlAttribute) Evaluates the given attribute set at the PDPbooleaninitialize(String pathXACMLFile) Initialise the ABAC-PDP with the given XACML policy filevoidshutdown()Shutdowns the evaluation context.
-
Method Details
-
initialize
Initialise the ABAC-PDP with the given XACML policy file- Parameters:
pathXACMLFile- path to XACML file- Returns:
- true if init was successful
-
shutdown
void shutdown()Shutdowns the evaluation context. Before shutdown theEvaluate.initializemust be executed -
evaluate
Optional<PDPResult> evaluate(List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> subject, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> environment, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> resource, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> operation, List<org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> xacmlAttribute) Evaluates the given attribute set at the PDP- Parameters:
subject- subject attributesenvironment- environment attributesresource- resource attributesoperation- operation attributesxacmlAttribute- custom XACMl attributes based on xml strings- Returns:
- decision of PDP
-