Package org.openmuc.jeebus.spine.spi
Interface FeaturePermission
-
public interface FeaturePermission
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanbindingAllowed(org.openmuc.jeebus.spine.xsd.v1.NodeManagementBindingRequestCallType.BindingRequest bindingRequest)default booleanisTrusted(org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType clientAddress, java.lang.String minimumTrustLevel)booleansubscriptionAllowed(org.openmuc.jeebus.spine.xsd.v1.NodeManagementSubscriptionRequestCallType.SubscriptionRequest subscriptionRequest)
-
-
-
Method Detail
-
bindingAllowed
boolean bindingAllowed(org.openmuc.jeebus.spine.xsd.v1.NodeManagementBindingRequestCallType.BindingRequest bindingRequest)
- Parameters:
bindingRequest- the binding request- Returns:
- true if request is permitted, false otherwise
-
subscriptionAllowed
boolean subscriptionAllowed(org.openmuc.jeebus.spine.xsd.v1.NodeManagementSubscriptionRequestCallType.SubscriptionRequest subscriptionRequest)
- Parameters:
subscriptionRequest- the subscription request- Returns:
- true if request is permitted, false otherwise
-
isTrusted
default boolean isTrusted(org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType clientAddress, java.lang.String minimumTrustLevel)- Parameters:
clientAddress- the address of the client featureminimumTrustLevel- the minimum trust level set on the accessed feature- Returns:
- if the client is allowed to access the features this permission belongs to
-
-