public interface SshAuthentication
The base interface for all SSH authentication mechanisms and authentication result constants.
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
String |
getMethod()
The SSH authentication method name
|
String |
getUsername()
Get the username for this authentication attempt.
|
void |
setUsername(String username)
Set the username for this authentication attempt.
|
static final int COMPLETE
static final int FAILED
static final int FURTHER_AUTHENTICATION_REQUIRED
static final int CANCELLED
static final int PUBLIC_KEY_ACCEPTABLE
void setUsername(String username)
username
- String getUsername()
String getMethod()
Copyright © 2024. All rights reserved.