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, sendPassword
destroy, getClientSession, getName, getService, getSession, process, toString
getSimplifiedLogger
public 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.UserAuth
init
in class org.apache.sshd.client.auth.password.UserAuthPassword
java.lang.Exception
protected 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.UserAuthPassword
java.lang.Exception
private java.lang.String getPassword(org.apache.sshd.client.session.ClientSession session, org.apache.sshd.client.auth.keyboard.UserInteraction interaction)