java.lang.Object
org.palladiosimulator.pcm.confidentiality.context.xacml.javapdp.XACMLPDP
All Implemented Interfaces:
Evaluate

public class XACMLPDP extends Object implements Evaluate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XACMLPDP

      public XACMLPDP()
  • Method Details

    • evaluate

      public 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)
      Description copied from interface: Evaluate
      Evaluates the given attribute set at the PDP
      Specified by:
      evaluate in interface Evaluate
      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
    • initialize

      public boolean initialize(String pathXACMLFile)
      Description copied from interface: Evaluate
      Initialise the ABAC-PDP with the given XACML policy file
      Specified by:
      initialize in interface Evaluate
      Parameters:
      pathXACMLFile - path to XACML file
      Returns:
      true if init was successful
    • shutdown

      public void shutdown()
      Description copied from interface: Evaluate
      Shutdowns the evaluation context. Before shutdown the Evaluate.initialize must be executed
      Specified by:
      shutdown in interface Evaluate