com.maverick.ssh
Interface SshAuthentication


public interface SshAuthentication

The base interface for all SSH authentication mechanisms and authentication result constants.

Author:
Lee David Painter

Field Summary
static int CANCELLED
          The authentication was cancelled by the user
static int COMPLETE
          The authentication completed
static int FAILED
          The authentication failed
static int FURTHER_AUTHENTICATION_REQUIRED
          The authentication succeeded but further authentication is required
static int PUBLIC_KEY_ACCEPTABLE
          The public key provided is acceptable for authentication
 
Method Summary
 java.lang.String getMethod()
          The SSH authentication method name
 java.lang.String getUsername()
          Get the username for this authentication attempt.
 void setUsername(java.lang.String username)
          Set the username for this authentication attempt.
 

Field Detail

COMPLETE

static final int COMPLETE
The authentication completed

See Also:
Constant Field Values

FAILED

static final int FAILED
The authentication failed

See Also:
Constant Field Values

FURTHER_AUTHENTICATION_REQUIRED

static final int FURTHER_AUTHENTICATION_REQUIRED
The authentication succeeded but further authentication is required

See Also:
Constant Field Values

CANCELLED

static final int CANCELLED
The authentication was cancelled by the user

See Also:
Constant Field Values

PUBLIC_KEY_ACCEPTABLE

static final int PUBLIC_KEY_ACCEPTABLE
The public key provided is acceptable for authentication

See Also:
Constant Field Values
Method Detail

setUsername

void setUsername(java.lang.String username)
Set the username for this authentication attempt.

Parameters:
username -

getUsername

java.lang.String getUsername()
Get the username for this authentication attempt.

Returns:
the username used.

getMethod

java.lang.String getMethod()
The SSH authentication method name

Returns:
String


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.