public class ForwardingPolicy extends Permissions
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_FORWARDING |
static int |
GATEWAY_FORWARDING |
permissions| Constructor and Description |
|---|
ForwardingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowGatewayForwarding() |
boolean |
checkHostPermitted(Connection con,
String host,
int port)
Check the host of the forwarding is permitted under this policy.
|
boolean |
checkInterfacePermitted(Connection con,
String originHost,
int originPort)
Check that the source of the forwarding is permitted under this policy.
|
void |
denyGatewayForwarding() |
void |
disableForwarding() |
void |
grantForwarding(String host)
Grant access to a specific host.
|
void |
revokeForwarding(String host)
Revoke access from a specific host.
|
add, check, removepublic static final int ALLOW_FORWARDING
public static final int GATEWAY_FORWARDING
public void disableForwarding()
public void allowGatewayForwarding()
public void denyGatewayForwarding()
public void grantForwarding(String host)
host - port - public void revokeForwarding(String host)
host - public boolean checkInterfacePermitted(Connection con, String originHost, int originPort)
con - the connection the request originated fromoriginHost - originPort - public boolean checkHostPermitted(Connection con, String host, int port)
con - the connection the request originated fromhost - port - Copyright © 2025. All rights reserved.