Class PolicyHelper
java.lang.Object
org.palladiosimulator.pcm.confidentiality.context.helper.PolicyHelper
Helper class for converting
Policy
elements to ABAC queries-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createRequestAttributes
(Deque<? extends org.palladiosimulator.pcm.core.entity.Entity> requestedEntity, List<? extends UsageSpecification> requestorContext, List<UsageSpecification> listSubject, List<UsageSpecification> listEnvironment, List<UsageSpecification> listResource, List<UsageSpecification> listXML) Converts the context of a requestor and the requested entity to abac statements based on attributes list for subjec, resource, environmentstatic void
createRequestAttributes
(org.palladiosimulator.pcm.repository.Signature signature, Deque<? extends org.palladiosimulator.pcm.core.entity.Entity> component, List<? extends UsageSpecification> requestorContext, List<UsageSpecification> listSubject, List<UsageSpecification> listEnvironment, List<UsageSpecification> listResource, List<UsageSpecification> listAction, List<UsageSpecification> listXML)
-
Method Details
-
createRequestAttributes
public static void createRequestAttributes(Deque<? extends org.palladiosimulator.pcm.core.entity.Entity> requestedEntity, List<? extends UsageSpecification> requestorContext, List<UsageSpecification> listSubject, List<UsageSpecification> listEnvironment, List<UsageSpecification> listResource, List<UsageSpecification> listXML) Converts the context of a requestor and the requested entity to abac statements based on attributes list for subjec, resource, environment- Parameters:
requestedEntity
- requested entityrequestorContext
- context of the requestorlistSubject
- empty list for subject attributeslistEnvironment
- empty list for environment attributeslistResource
- empty list for resource attributeslistXML
- empty list forXMLAttribute
attributes
-
createRequestAttributes
public static void createRequestAttributes(org.palladiosimulator.pcm.repository.Signature signature, Deque<? extends org.palladiosimulator.pcm.core.entity.Entity> component, List<? extends UsageSpecification> requestorContext, List<UsageSpecification> listSubject, List<UsageSpecification> listEnvironment, List<UsageSpecification> listResource, List<UsageSpecification> listAction, List<UsageSpecification> listXML)
-