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.UserInfo
public String getPassphrase()
getPassphrase
in interface com.jcraft.jsch.UserInfo
public boolean promptPassphrase(String msg)
promptPassphrase
in interface com.jcraft.jsch.UserInfo
public boolean promptPassword(String msg)
promptPassword
in interface com.jcraft.jsch.UserInfo
public boolean promptYesNo(String msg)
promptYesNo
in interface com.jcraft.jsch.UserInfo
public void showMessage(String msg)
showMessage
in interface com.jcraft.jsch.UserInfo
Copyright © 2018 Eclipse JGit Project. All rights reserved.