public interface HandshakingUserAuth extends UserAuth
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Free any system resources used by the module.
|
String |
getUserName()
Get a user name which has been derived from the handshaking process, or the intial name if
nothing has been found.
|
boolean |
handles(SshConstants.Message msg)
Check whether a particular message is handled here.
|
Boolean |
next(ServerSession session,
SshConstants.Message msg,
Buffer buffer)
Handle another step in the authentication process.
|
void |
setServiceName(String service)
Set the service name from the original request.
|
void setServiceName(String service)
service
- The service nameboolean handles(SshConstants.Message msg)
msg
- The messagetrue
if the message is handledBoolean next(ServerSession session, SshConstants.Message msg, Buffer buffer) throws Exception
session
- the current ssh sessionmsg
- The message typebuffer
- the request buffer containing parameters specific to this requesttrue
if the authentication succeeded, false
if the authentication
is not finished yetException
- if the authentication failsString getUserName() throws Exception
Exception
- if the request failsvoid destroy()
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.