|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AccessManager
Use this interface to control access to SSH services. To configure a security
manager add an instance of this interface to the ConfigurationContext.
| Method Summary | |
|---|---|
boolean |
canConnect(java.net.SocketAddress remoteClient,
java.net.SocketAddress localAddress)
Can the remote ip address connect to this server. |
boolean |
canConnect(java.lang.String username)
Perform an access permissions check to determine whether the user can connect to this server. |
boolean |
canExecuteCommand(java.lang.String sessionid,
java.lang.String username,
java.lang.String cmd)
Perform an access permissions check to determine whether the user can execute the specified command |
boolean |
canForward(java.lang.String sessionid,
java.lang.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(java.lang.String sessionid,
java.lang.String username,
java.lang.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(java.lang.String sessionid,
java.lang.String username,
Channel channel)
Can the user open a channel. |
boolean |
canStartShell(java.lang.String sessionid,
java.lang.String username)
Perform an access permissions check to determine whether the user can start a shell. |
boolean |
canStartSubsystem(java.lang.String sessionid,
java.lang.String username,
java.lang.String subsystem)
Perform an access permissions check to determine whether the user can start the specified subsystem |
java.lang.String[] |
getRequiredAuthentications(java.lang.String sessionid,
java.lang.String username)
Called by the AuthenticationProtocol to retrieve a list of required authentications for each user. |
| Method Detail |
|---|
boolean canConnect(java.lang.String username)
username -
boolean canConnect(java.net.SocketAddress remoteClient,
java.net.SocketAddress localAddress)
remoteClient - SocketAddress
boolean canOpenChannel(java.lang.String sessionid,
java.lang.String username,
Channel channel)
sessionid - byte[]username - Stringchannel - Channel
boolean canStartShell(java.lang.String sessionid,
java.lang.String username)
sessionid - username -
boolean canExecuteCommand(java.lang.String sessionid,
java.lang.String username,
java.lang.String cmd)
sessionid - username - cmd -
boolean canStartSubsystem(java.lang.String sessionid,
java.lang.String username,
java.lang.String subsystem)
sessionid - username - subsystem -
boolean canForward(java.lang.String sessionid,
java.lang.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(java.lang.String sessionid,
java.lang.String username,
java.lang.String bindAddress,
int bindPort)
sessionid - username - bindAddress - bindPort -
java.lang.String[] getRequiredAuthentications(java.lang.String sessionid,
java.lang.String username)
sessionid - byte[]username - String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||