public interface UserAuth
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
auth(ServerSession session,
java.lang.String username,
java.lang.String service,
Buffer buffer)
Try to authenticate the user.
|
void |
destroy()
Free any system resources used by the module.
|
java.lang.String |
getUserName()
Get a user name which has been derived from the handshaking process, or the initial name if
nothing has been found.
|
java.lang.Boolean |
next(Buffer buffer)
Handle another step in the authentication process.
|
java.lang.Boolean auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer) throws java.lang.Exception
session - the current ssh sessionusername - the user trying to log inbuffer - the request buffer containing parameters specific to this requesttrue if the authentication succeeded, false if the authentication
failed and nullis not finished yetjava.lang.Exception - if the authentication failsjava.lang.Boolean next(Buffer buffer) throws java.lang.Exception
buffer - the request buffer containing parameters specific to this requesttrue if the authentication succeeded, false if the authentication
failed and nullis not finished yetjava.lang.Exception - if the authentication failsjava.lang.String getUserName()
throws java.lang.Exception
java.lang.Exception - if the request failsvoid destroy()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.