public class CredentialsProviderUserInfo extends Object implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
UserInfo adapter for a
CredentialsProvider.| Constructor and Description |
|---|
CredentialsProviderUserInfo(com.jcraft.jsch.Session session,
CredentialsProvider credentialsProvider)
Wrap a CredentialsProvider to make it suitable for use with JSch.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPassphrase() |
String |
getPassword() |
String[] |
promptKeyboardInteractive(String destination,
String name,
String instruction,
String[] prompt,
boolean[] echo) |
boolean |
promptPassphrase(String msg) |
boolean |
promptPassword(String msg) |
boolean |
promptYesNo(String msg) |
void |
showMessage(String msg) |
public CredentialsProviderUserInfo(com.jcraft.jsch.Session session,
CredentialsProvider credentialsProvider)
session - the JSch session this UserInfo will support authentication on.credentialsProvider - the provider that will perform the authentication.public String getPassword()
getPassword in interface com.jcraft.jsch.UserInfopublic String getPassphrase()
getPassphrase in interface com.jcraft.jsch.UserInfopublic boolean promptPassphrase(String msg)
promptPassphrase in interface com.jcraft.jsch.UserInfopublic boolean promptPassword(String msg)
promptPassword in interface com.jcraft.jsch.UserInfopublic boolean promptYesNo(String msg)
promptYesNo in interface com.jcraft.jsch.UserInfopublic void showMessage(String msg)
showMessage in interface com.jcraft.jsch.UserInfoCopyright © 2020 Eclipse JGit Project. All rights reserved.