public class JGitPasswordAuthentication
extends org.apache.sshd.client.auth.password.UserAuthPassword
JGitUserInteraction
to ask the user for the password. It also respects the
NumberOfPasswordPrompts ssh config.| Modifier and Type | Field and Description |
|---|---|
private int |
attempts |
private int |
maxAttempts |
| Constructor and Description |
|---|
JGitPasswordAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getPassword(org.apache.sshd.client.session.ClientSession session,
org.apache.sshd.client.auth.keyboard.UserInteraction interaction) |
void |
init(org.apache.sshd.client.session.ClientSession session,
java.lang.String service) |
protected boolean |
sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session,
java.lang.String service) |
processAuthDataRequest, sendPassworddestroy, getClientSession, getName, getService, getSession, process, toStringgetSimplifiedLoggerpublic void init(org.apache.sshd.client.session.ClientSession session,
java.lang.String service)
throws java.lang.Exception
init in interface org.apache.sshd.client.auth.UserAuthinit in class org.apache.sshd.client.auth.password.UserAuthPasswordjava.lang.Exceptionprotected boolean sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session,
java.lang.String service)
throws java.lang.Exception
sendAuthDataRequest in class org.apache.sshd.client.auth.password.UserAuthPasswordjava.lang.Exceptionprivate java.lang.String getPassword(org.apache.sshd.client.session.ClientSession session,
org.apache.sshd.client.auth.keyboard.UserInteraction interaction)