public interface AccessManager
ConfigurationContext
.Modifier and Type | Method and Description |
---|---|
boolean |
canConnect(SocketAddress remoteAddress,
SocketAddress localAddress)
Deprecated.
use IPPolicy instead
|
boolean |
canConnect(String username)
Deprecated.
There is no replacement for this method. Access should be denied through the authentication mechanisms installed.
|
boolean |
canExecuteCommand(String sessionid,
String username,
String cmd)
Deprecated.
extend ShellPolicy and implement assertPermission method checking for ShellPermission.EXECUTE
|
boolean |
canForward(String sessionid,
String username,
ForwardingChannel channel,
boolean isLocal)
Deprecated.
use ForwardingPolicy instead.
|
boolean |
canListen(String sessionid,
String username,
String bindAddress,
int bindPort)
Deprecated.
use ForwardingPolicy instead.
|
boolean |
canOpenChannel(String sessionid,
String username,
Channel channel)
Deprecated.
Use ChannelFactory instead.
|
boolean |
canStartShell(String sessionid,
String username)
Deprecated.
use ShellPolicy call remove(ShellPolicy.SHELL) to deny access to shell.
|
boolean |
canStartSubsystem(String sessionid,
String username,
String subsystem)
Deprecated.
extend ShellPolicy and implement assertPermission method checking for ShellPermission.SUBSYSTEM
|
String[] |
getRequiredAuthentications(String sessionid,
String username)
Deprecated.
Use AuthenticationMechanismFactory getRequiredMechanisms instead.
|
boolean canConnect(String username)
username
- boolean canConnect(SocketAddress remoteAddress, SocketAddress localAddress)
remoteAddress
- SocketAddresslocalAddress
- SocketAddressboolean canOpenChannel(String sessionid, String username, Channel channel)
sessionid
- Stringusername
- Stringchannel
- Channelboolean canStartShell(String sessionid, String username)
sessionid
- username
- boolean canExecuteCommand(String sessionid, String username, String cmd)
sessionid
- username
- cmd
- boolean canStartSubsystem(String sessionid, String username, String subsystem)
sessionid
- username
- subsystem
- boolean canForward(String sessionid, String username, ForwardingChannel channel, boolean isLocal)
sessionid
- the id of the users sessionusername
- the connected userchannel
- the channel instance being opened. You can get information
such as address/host from this.isLocal
- true if the forwarding is local, otherwise false
for remote forwarding.boolean canListen(String sessionid, String username, String bindAddress, int bindPort)
sessionid
- username
- bindAddress
- bindPort
- String[] getRequiredAuthentications(String sessionid, String username)
sessionid
- Stringusername
- StringCopyright © 2017. All rights reserved.