Class JGitPasswordAuthentication
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.client.auth.AbstractUserAuth
-
- org.apache.sshd.client.auth.password.UserAuthPassword
-
- org.eclipse.jgit.internal.transport.sshd.JGitPasswordAuthentication
-
- All Implemented Interfaces:
org.apache.sshd.client.auth.UserAuth,org.apache.sshd.client.session.ClientSessionHolder,org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>,org.apache.sshd.common.NamedResource
public class JGitPasswordAuthentication extends org.apache.sshd.client.auth.password.UserAuthPasswordA password authentication handler that uses theJGitUserInteractionto ask the user for the password. It also respects theNumberOfPasswordPromptsssh config.
-
-
Field Summary
Fields Modifier and Type Field Description private intattemptsprivate intmaxAttempts
-
Constructor Summary
Constructors Constructor Description JGitPasswordAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringgetPassword(org.apache.sshd.client.session.ClientSession session, org.apache.sshd.client.auth.keyboard.UserInteraction interaction)voidinit(org.apache.sshd.client.session.ClientSession session, java.lang.String service)protected booleansendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, java.lang.String service)-
Methods inherited from class org.apache.sshd.client.auth.password.UserAuthPassword
processAuthDataRequest, resolveAttemptedPassword, sendPassword, signalAuthMethodFailure, signalAuthMethodSuccess
-
Methods inherited from class org.apache.sshd.client.auth.AbstractUserAuth
destroy, getClientSession, getName, getService, getSession, isCancellable, process, setCancellable, toString
-
-
-
-
Method Detail
-
init
public void init(org.apache.sshd.client.session.ClientSession session, java.lang.String service) throws java.lang.Exception- Specified by:
initin interfaceorg.apache.sshd.client.auth.UserAuth- Overrides:
initin classorg.apache.sshd.client.auth.password.UserAuthPassword- Throws:
java.lang.Exception
-
sendAuthDataRequest
protected boolean sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, java.lang.String service) throws java.lang.Exception- Overrides:
sendAuthDataRequestin classorg.apache.sshd.client.auth.password.UserAuthPassword- Throws:
java.lang.Exception
-
getPassword
private java.lang.String getPassword(org.apache.sshd.client.session.ClientSession session, org.apache.sshd.client.auth.keyboard.UserInteraction interaction)
-
-