|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.util.ssh.SSHAgent
public class SSHAgent
Isis SSH agent. This class centralize, ssh key and passphrase management. This is a singleton class.
| Field Summary | |
|---|---|
protected com.jcraft.jsch.JSch |
jsch
JSSch instance. |
protected Map<String,String> |
passphraseForKeys
Passphrase associated to key file path. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.jcraft.jsch.JSch jsch
protected Map<String,String> passphraseForKeys
| Method Detail |
|---|
public static SSHAgent getAgent()
public String getPassphrase(File privatekeyFile)
throws InvalidPassphraseException
privatekeyFile - private key file
InvalidPassphraseException - if user cancel authentication
public String getPassphrase(String privatekeyFile)
throws InvalidPassphraseException
privatekeyFile - private key file path
InvalidPassphraseException - if user cancel authentication
protected String askPassphrase(String privatekeyFile,
String message)
throws InvalidPassphraseException
privatekeyFile - private key file pathmessage - message
InvalidPassphraseException - if user cancel authentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||