| net.schmizz.sshj.userauth.UserAuth |
Known Indirect Subclasses
|
User authentication API. See RFC 4252.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Attempt to authenticate
username using each of methods in order. | |||||||||||
Returns the authentication banner (if any).
| |||||||||||
Set the
timeout for any method to successfully authenticate before it is abandoned. | |||||||||||
Attempt to authenticate username using each of methods in order. nextService is the
Service that will be enabled on successful authentication.
UserAuthException is thrown with its cause as the last authentication failure. Other UserAuthException's
which may have been ignored may be accessed via getSavedExceptions().
Further attempts may also be made by catching UserAuthException and retrying with this method.| username | The user to authenticate |
|---|---|
| nextService | The service to set on successful authentication |
| methods | The AuthMethod's to try |
| UserAuthException | in case of authentication failure |
|---|---|
| TransportException | if there was a transport-layer error |
Returns the authentication banner (if any). In some cases this is available even before the first authentication request has been made.
timeout for a method to successfully authenticate before it is abandoned. true if at least one of the method supplied succeeded.
Set the timeout for any method to successfully authenticate before it is abandoned.
| timeout | The timeout in seconds |
|---|