Package org.eclipse.edc.demo.dcp.policy
Class MembershipCredentialEvaluationFunction<C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
java.lang.Object
org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
org.eclipse.edc.demo.dcp.policy.MembershipCredentialEvaluationFunction<C>
- All Implemented Interfaces:
org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Permission,C>
public class MembershipCredentialEvaluationFunction<C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
extends AbstractCredentialEvaluationFunction
implements org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Permission,C>
-
Field Summary
FieldsFields inherited from class org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
MVD_NAMESPACE -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
MembershipCredentialEvaluationFunction<C>create()booleanevaluate(org.eclipse.edc.policy.model.Operator operator, Object rightOperand, org.eclipse.edc.policy.model.Permission permission, C policyContext) Methods inherited from class org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
getCredentialListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction
name, validate
-
Field Details
-
MEMBERSHIP_CONSTRAINT_KEY
- See Also:
-
-
Method Details
-
create
public static <C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext> MembershipCredentialEvaluationFunction<C> create() -
evaluate
public boolean evaluate(org.eclipse.edc.policy.model.Operator operator, Object rightOperand, org.eclipse.edc.policy.model.Permission permission, C policyContext) - Specified by:
evaluatein interfaceorg.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Permission,C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
-