public class SSHAgent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.jcraft.jsch.JSch |
jsch
JSSch instance.
|
protected Map<String,String> |
passphraseForKeys
Passphrase associated to key file path.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
askPassphrase(String privatekeyFile,
String message)
Ask for passphrase.
|
static SSHAgent |
getAgent()
Get agent instance.
|
String |
getPassphrase(File privatekeyFile)
Get passphrase for key.
|
String |
getPassphrase(String privatekeyFile)
Get passphrase for key.
|
public static SSHAgent getAgent()
public String getPassphrase(File privatekeyFile) throws InvalidPassphraseException
privatekeyFile - private key fileInvalidPassphraseException - if user cancel authenticationpublic String getPassphrase(String privatekeyFile) throws InvalidPassphraseException
privatekeyFile - private key file pathInvalidPassphraseException - if user cancel authenticationprotected String askPassphrase(String privatekeyFile, String message) throws InvalidPassphraseException
privatekeyFile - private key file pathmessage - messageInvalidPassphraseException - if user cancel authenticationCopyright © 1999–2014 CodeLutin. All rights reserved.