aboutsummaryrefslogtreecommitdiffstats
path: root/lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-06-26 06:25:39 +0000
committerKenny Root <kenny@the-b.org>2009-06-26 06:25:39 +0000
commit6e628c5b4b6176f5e287ca7a2c2a5cee2005602a (patch)
tree594385734a8c9f3e5f4869ff3bc1cbde2e21ade8 /lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java
parente09de8bcb794a9cbcb5e6d60fdcbdef2f95b3756 (diff)
downloadsshlib-6e628c5b4b6176f5e287ca7a2c2a5cee2005602a.tar.gz
sshlib-6e628c5b4b6176f5e287ca7a2c2a5cee2005602a.tar.bz2
sshlib-6e628c5b4b6176f5e287ca7a2c2a5cee2005602a.zip
Clean up auth agent forwarder, add auth agent locking
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@332 df292f66-193f-0410-a5fc-6d59da041ff2
Diffstat (limited to 'lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java')
-rw-r--r--lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java b/lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java
index 2bd10e0..ffc3020 100644
--- a/lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java
+++ b/lib/src/main/java/com/trilead/ssh2/AuthAgentCallback.java
@@ -42,4 +42,20 @@ public interface AuthAgentCallback {
* the user in Trilead object format.
*/
Object getPrivateKey(byte[] publicKey);
+
+ /**
+ * @return
+ */
+ boolean isAgentLocked();
+
+ /**
+ * @param lockPassphrase
+ */
+ boolean setAgentLock(String lockPassphrase);
+
+ /**
+ * @param unlockPassphrase
+ * @return
+ */
+ boolean requestAgentUnlock(String unlockPassphrase);
}