public interface PasswordUpdateProvider
| Modifier and Type | Method and Description |
|---|---|
char[] |
provideNewPassword(Resource<?> resource,
java.lang.String prompt)
Called with the prompt received from the SSH server.
|
boolean |
shouldRetry(Resource<?> resource)
If password turns out to be incorrect, indicates whether another call to
provideNewPassword(Resource, String) should be
made. |
char[] provideNewPassword(Resource<?> resource, java.lang.String prompt)
resource - The resource for which the updated password is being requested.prompt - The password update prompt received from the SSH Server.boolean shouldRetry(Resource<?> resource)
provideNewPassword(Resource, String) should be
made.
This method is geared at interactive implementations, and stub implementations may simply return false.resource - the resource for which the updated password is being requested