Package org.eclipse.jgit.transport
Class CredentialsProviderUserInfo
java.lang.Object
org.eclipse.jgit.transport.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 JSch
UserInfo
adapter for a
CredentialsProvider
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private final CredentialsProvider
private final URIish
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialsProviderUserInfo
(com.jcraft.jsch.Session session, CredentialsProvider credentialsProvider) Wrap a CredentialsProvider to make it suitable for use with JSch. -
Method Summary
Modifier and TypeMethodDescriptionprivate static URIish
createURI
(com.jcraft.jsch.Session session) private CredentialItem.StringType
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)
-
Field Details
-
uri
-
provider
-
password
-
passphrase
-
-
Constructor Details
-
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 Details
-
createURI
-
getPassword
- Specified by:
getPassword
in interfacecom.jcraft.jsch.UserInfo
-
getPassphrase
- Specified by:
getPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
promptPassphrase
- Specified by:
promptPassphrase
in interfacecom.jcraft.jsch.UserInfo
-
promptPassword
- Specified by:
promptPassword
in interfacecom.jcraft.jsch.UserInfo
-
newPrompt
-
promptYesNo
- Specified by:
promptYesNo
in interfacecom.jcraft.jsch.UserInfo
-
showMessage
- Specified by:
showMessage
in interfacecom.jcraft.jsch.UserInfo
-
promptKeyboardInteractive
public String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) - Specified by:
promptKeyboardInteractive
in interfacecom.jcraft.jsch.UIKeyboardInteractive
-