public static class SimpleFirewallSupplier.Policy
extends java.lang.Object
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
SimpleFirewallSupplier.Policy |
allowedAgentNames(java.lang.String... agentNames)
Allow
send that have the specified agent names specified as a recipient. |
SimpleFirewallSupplier.Policy |
allowedServiceNames(java.lang.String... serviceNames)
Allow
agentForService , agentsForService for the specified service names. |
SimpleFirewallSupplier.Policy |
allowedTopicNames(java.lang.String... topicNames)
Allow
subscribe to the specified topic names. |
boolean |
isPermitted(AgentID agentID)
Checks whether a message intended for the specified agent/topic may be sent over this connection.
|
boolean |
isPermitted(JsonMessage jsonMessage)
Checks whether a JSON message can be accepted over this connection.
|
public SimpleFirewallSupplier.Policy allowedServiceNames(java.lang.String... serviceNames)
agentForService
, agentsForService
for the specified service names.serviceNames
- Service names.Policy
instance.public SimpleFirewallSupplier.Policy allowedAgentNames(java.lang.String... agentNames)
send
that have the specified agent names specified as a recipient.agentNames
- Agent names.Policy
instance.public SimpleFirewallSupplier.Policy allowedTopicNames(java.lang.String... topicNames)
subscribe
to the specified topic names.topicNames
- Topic names.Policy
instance.public boolean isPermitted(AgentID agentID)
agentID
- Agent ID.true
to accept, false
to reject.public boolean isPermitted(JsonMessage jsonMessage)
jsonMessage
- JsonMessage
true
to accept, false
to reject.