public interface UserAuth
Modifier and Type | Method and Description |
---|---|
Boolean |
auth(ServerSession session,
String username,
String service,
Buffer buffer)
Try to authenticate the user.
|
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 initial name if
nothing has been found.
|
Boolean |
next(Buffer buffer)
Handle another step in the authentication process.
|
Boolean auth(ServerSession session, String username, String service, Buffer buffer) throws 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 null
is not finished yetException
- if the authentication failsBoolean next(Buffer buffer) throws Exception
buffer
- the request buffer containing parameters specific to this requesttrue
if the authentication succeeded, false
if the authentication
failed and null
is not finished yetException
- if the authentication failsString getUserName() throws Exception
Exception
- if the request failsvoid destroy()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.