public class JGitUserInteraction extends Object implements org.apache.sshd.client.auth.keyboard.UserInteraction
UserInteraction
callback implementation based on a
CredentialsProvider
.Constructor and Description |
---|
JGitUserInteraction(CredentialsProvider provider)
Creates a new
JGitUserInteraction for interactive password input
based on the given CredentialsProvider . |
Modifier and Type | Method and Description |
---|---|
String |
getUpdatedPassword(org.apache.sshd.client.session.ClientSession session,
String prompt,
String lang) |
String[] |
interactive(org.apache.sshd.client.session.ClientSession session,
String name,
String instruction,
String lang,
String[] prompt,
boolean[] echo) |
boolean |
isInteractionAllowed(org.apache.sshd.client.session.ClientSession session) |
static URIish |
toURI(String userName,
InetSocketAddress remote)
Creates a
URIish from the given remote address and user name. |
public JGitUserInteraction(CredentialsProvider provider)
JGitUserInteraction
for interactive password input
based on the given CredentialsProvider
.provider
- to usepublic boolean isInteractionAllowed(org.apache.sshd.client.session.ClientSession session)
isInteractionAllowed
in interface org.apache.sshd.client.auth.keyboard.UserInteraction
public String[] interactive(org.apache.sshd.client.session.ClientSession session, String name, String instruction, String lang, String[] prompt, boolean[] echo)
interactive
in interface org.apache.sshd.client.auth.keyboard.UserInteraction
public String getUpdatedPassword(org.apache.sshd.client.session.ClientSession session, String prompt, String lang)
getUpdatedPassword
in interface org.apache.sshd.client.auth.keyboard.UserInteraction
public static URIish toURI(String userName, InetSocketAddress remote)
URIish
from the given remote address and user name.userName
- for the uriremote
- address of the remote hostSshConstants.SSH_SCHEME
as schemeCopyright © 2019 Eclipse JGit Project. All rights reserved.