org.apache.sshd.server.auth
Class UserAuthNone

java.lang.Object
  extended by org.apache.sshd.server.auth.UserAuthNone
All Implemented Interfaces:
UserAuth

public class UserAuthNone
extends Object
implements UserAuth

TODO Add javadoc

Author:
Apache MINA SSHD Project

Nested Class Summary
static class UserAuthNone.Factory
           
 
Constructor Summary
UserAuthNone()
           
 
Method Summary
 Boolean auth(ServerSession session, String username, Buffer buffer)
          Try to authenticate the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAuthNone

public UserAuthNone()
Method Detail

auth

public Boolean auth(ServerSession session,
                    String username,
                    Buffer buffer)
Description copied from interface: UserAuth
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.

Specified by:
auth in interface UserAuth
Parameters:
session - the current ssh session
username - the user trying to log in
buffer - the request buffer containing parameters specific to this request
Returns:
true if the authentication succeeded, false if the authentication is not finished yet


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.