com.maverick.ssh
Interface SshAuthentication

All Known Subinterfaces:
AuthenticationClient
All Known Implementing Classes:
KBIAuthentication, PasswordAuthentication, PublicKeyAuthentication, Ssh1ChallengeResponseAuthentication, Ssh1RhostsRsaAuthentication, Ssh2HostbasedAuthentication, Ssh2PasswordAuthentication, Ssh2PublicKeyAuthentication

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 by 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

public static final int COMPLETE
The authentication completed

See Also:
Constant Field Values

FAILED

public static final int FAILED
The authentication failed

See Also:
Constant Field Values

FURTHER_AUTHENTICATION_REQUIRED

public static final int FURTHER_AUTHENTICATION_REQUIRED
The authentication succeeded by further authentication is required

See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
The authentication was cancelled by the user

See Also:
Constant Field Values

PUBLIC_KEY_ACCEPTABLE

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

See Also:
Constant Field Values
Method Detail

setUsername

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

Parameters:
username -

getUsername

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

Returns:
the username used.

getMethod

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

Returns:
String


Copyright © 2003 3SP LTD. All Rights Reserved.