org.apache.sshd.server
Interface UserAuth
- All Known Implementing Classes:
- UserAuthNone, UserAuthPassword, UserAuthPublicKey
public interface UserAuth
Server side authentication mechanism.
- Author:
- Apache MINA SSHD Project
|
Method Summary |
java.lang.Boolean |
auth(ServerSession session,
java.lang.String username,
Buffer buffer)
Try to authenticate the user. |
auth
java.lang.Boolean auth(ServerSession session,
java.lang.String username,
Buffer buffer)
throws java.lang.Exception
- Try to authenticate the user.
This methods should return a non null object which is the user identity if
the authentication succeeded. If the authentication failed, this method should
throw an exception. If the authentication is still ongoing, a null value should
be returned.
- Parameters:
session - the current ssh sessionusername - the user trying to log inbuffer - the request buffer containing parameters specific to this request
- Returns:
true if the authentication succeeded, false if the authentication
is not finished yet
- Throws:
java.lang.Exception - if the authentication fails
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.