Class CredentialsProviderUserInfo
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.ssh.jsch.CredentialsProviderUserInfo
-
- All Implemented Interfaces:
com.jcraft.jsch.UIKeyboardInteractive
,com.jcraft.jsch.UserInfo
public class CredentialsProviderUserInfo extends Object implements com.jcraft.jsch.UserInfo, com.jcraft.jsch.UIKeyboardInteractive
A JSchUserInfo
adapter for aCredentialsProvider
.
-
-
Constructor Summary
Constructors Constructor Description CredentialsProviderUserInfo(com.jcraft.jsch.Session session, CredentialsProvider credentialsProvider)
Wrap a CredentialsProvider to make it suitable for use with JSch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
CredentialsProviderUserInfo
public CredentialsProviderUserInfo(com.jcraft.jsch.Session session, CredentialsProvider credentialsProvider)
Wrap a CredentialsProvider to make it suitable for use with JSch.- Parameters:
session
- the JSch session this UserInfo will support authentication on.credentialsProvider
- the provider that will perform the authentication.
-
-
Method Detail
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfacecom.jcraft.jsch.UserInfo
-
getPassphrase
public String getPassphrase()
- Specified by:
getPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
promptPassphrase
public boolean promptPassphrase(String msg)
- Specified by:
promptPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
promptPassword
public boolean promptPassword(String msg)
- Specified by:
promptPassword
in interfacecom.jcraft.jsch.UserInfo
-
promptYesNo
public boolean promptYesNo(String msg)
- Specified by:
promptYesNo
in interfacecom.jcraft.jsch.UserInfo
-
showMessage
public void showMessage(String msg)
- Specified by:
showMessage
in interfacecom.jcraft.jsch.UserInfo
-
-