public interface Firewall
Firewall
instance.
Firewall
instances should be considered stateful.Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String creds)
Authenticates peer using specified credentials.
|
boolean |
permit(AgentID aid)
Checks whether a message intended for the specified agent/topic may be sent
over this connection.
|
boolean |
permit(JsonMessage rq)
Checks whether a JSON message can be accepted over this connection.
|
void |
signoff()
Called when the connection is closed.
|
boolean authenticate(java.lang.String creds)
creds
- credentials, or null if logging out.boolean permit(JsonMessage rq)
rq
- incoming JSON request.boolean permit(AgentID aid)
aid
- recipient agent/topic for the message.void signoff()
Firewall
instance should perform cleanup.