public class RestrictedNetworkGuard extends Object implements NetworkGuard
NetworkGuard implementation that accepts traffic coming from within the local network only.| Constructor and Description |
|---|
RestrictedNetworkGuard(String network,
String subnet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSecure(NetworkChannel channel,
InetSocketAddress source)
Decides whether a remote peer is secure or not.
|
public boolean isSecure(NetworkChannel channel, InetSocketAddress source)
NetworkGuardisSecure in interface NetworkGuardchannel - The channel who received the packet.source - The address of the remote peer.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.