All Known Implementing Classes:
XACMLPDP

public interface Evaluate
Interface for an evaluation context of ABAC policies based on a PDP
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    boolean
    initialize(String pathXACMLFile)
    Initialise the ABAC-PDP with the given XACML policy file
    void
    Shutdowns the evaluation context.
  • Method Details

    • initialize

      boolean initialize(String pathXACMLFile)
      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 the Evaluate.initialize must 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 attributes
      environment - environment attributes
      resource - resource attributes
      operation - operation attributes
      xacmlAttribute - custom XACMl attributes based on xml strings
      Returns:
      decision of PDP