public class IPPolicy extends Permissions
permissions
Constructor and Description |
---|
IPPolicy() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
assertAllowed(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected boolean |
assertConnection(SocketAddress remoteAddress,
SocketAddress localAddress) |
void |
blacklist(String addr) |
boolean |
checkConnection(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected boolean |
isListed(String addr,
List<CIDRNetwork> values) |
void |
startAcceptingConnections() |
void |
stopAcceptingConnections() |
void |
whitelist(String addr) |
add, check, remove
protected boolean assertConnection(SocketAddress remoteAddress, SocketAddress localAddress)
protected boolean assertAllowed(SocketAddress remoteAddress, SocketAddress localAddress)
protected boolean isListed(String addr, List<CIDRNetwork> values)
public final boolean checkConnection(SocketAddress remoteAddress, SocketAddress localAddress)
public void stopAcceptingConnections()
public void startAcceptingConnections()
public void blacklist(String addr)
public void whitelist(String addr)
Copyright © 2024. All rights reserved.