|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.AccessManagerAdapter
public class AccessManagerAdapter
An adapter for AccessManager
| Constructor Summary | |
|---|---|
AccessManagerAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
canConnect(SocketAddress remoteClient)
Can the remote ip address connect to this server. |
boolean |
canConnect(String username)
Perform an access permissions check to determine whether the user can connect to this server. |
boolean |
canExecuteCommand(String sessionid,
String username,
String cmd)
Perform an access permissions check to determine whether the user can execute the specified command |
boolean |
canForward(String sessionid,
String username,
ForwardingChannel channel,
boolean isLocal)
Perform an access permissions check to determine whether the user can open a forwarding channel to/on the specified host:port combination |
boolean |
canListen(String sessionid,
String username,
String bindAddress,
int bindPort)
Perform an access permission check to determine whether the user can open up a listening port on the server to forward remote connections to the remote client. |
boolean |
canOpenChannel(String sessionid,
String username,
Channel channel)
Can the user open a channel. |
boolean |
canStartShell(String sessionid,
String username)
Perform an access permissions check to determine whether the user can start a shell. |
boolean |
canStartSubsystem(String sessionid,
String username,
String subsystem)
Perform an access permissions check to determine whether the user can start the specified subsystem |
String[] |
getRequiredAuthentications(String sessionid,
String username)
Called by the AuthenticationProtocol to retrieve a list of required authentications for each user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessManagerAdapter()
| Method Detail |
|---|
public boolean canConnect(SocketAddress remoteClient)
remoteClient - SocketAddress
public boolean canConnect(String username)
username - String
public boolean canExecuteCommand(String sessionid,
String username,
String cmd)
AccessManager
canExecuteCommand in interface AccessManagersessionid - byte[]username - Stringcmd - String
public boolean canForward(String sessionid,
String username,
ForwardingChannel channel,
boolean isLocal)
AccessManager
canForward in interface AccessManagerchannel - the channel instance being opened.sessionid - the id of the user's 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.
public boolean canListen(String sessionid,
String username,
String bindAddress,
int bindPort)
canListen in interface AccessManagersessionid - byte[]username - StringbindAddress - StringbindPort - int
public boolean canOpenChannel(String sessionid,
String username,
Channel channel)
canOpenChannel in interface AccessManagersessionid - byte[]username - Stringchannel - Channel
public boolean canStartShell(String sessionid,
String username)
canStartShell in interface AccessManagersessionid - byte[]username - String
public boolean canStartSubsystem(String sessionid,
String username,
String subsystem)
AccessManager
canStartSubsystem in interface AccessManagersessionid - byte[]username - Stringsubsystem - String
public String[] getRequiredAuthentications(String sessionid,
String username)
AccessManager
getRequiredAuthentications in interface AccessManagersessionid - byte[]username - String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||