public abstract class UserAuth extends Object
Modifier and Type | Field and Description |
---|---|
protected Buffer |
buf |
protected Packet |
packet |
protected static int |
SSH_MSG_USERAUTH_BANNER |
protected static int |
SSH_MSG_USERAUTH_FAILURE |
protected static int |
SSH_MSG_USERAUTH_INFO_REQUEST |
protected static int |
SSH_MSG_USERAUTH_INFO_RESPONSE |
protected static int |
SSH_MSG_USERAUTH_PK_OK |
protected static int |
SSH_MSG_USERAUTH_REQUEST |
protected static int |
SSH_MSG_USERAUTH_SUCCESS |
protected UserInfo |
userinfo |
protected String |
username |
Constructor and Description |
---|
UserAuth() |
Modifier and Type | Method and Description |
---|---|
boolean |
start(Session session)
Will be called by the Session to do the authentication.
|
protected static final int SSH_MSG_USERAUTH_REQUEST
protected static final int SSH_MSG_USERAUTH_FAILURE
protected static final int SSH_MSG_USERAUTH_SUCCESS
protected static final int SSH_MSG_USERAUTH_BANNER
protected static final int SSH_MSG_USERAUTH_INFO_REQUEST
protected static final int SSH_MSG_USERAUTH_INFO_RESPONSE
protected static final int SSH_MSG_USERAUTH_PK_OK
protected UserInfo userinfo
protected Packet packet
protected Buffer buf
protected String username
public boolean start(Session session) throws Exception
This implementation fills the protected variables username
,
packet
, buf
and userinfo
and returns
true
. Subclasses will usually call super.start(session)
as first statement in the implementation.
JSchPartialAuthException
- if the authentication was partially
successful, i.e. not yet sufficient to login, but enough to continue
with more methods.Exception
This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.