org.apache.sshd.agent
Class AgentLocal
java.lang.Object
org.apache.sshd.agent.AgentLocal
- All Implemented Interfaces:
- SshAgent
public class AgentLocal
- extends java.lang.Object
- implements SshAgent
A local SSH agent implementation
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentLocal
public AgentLocal()
getIdentities
public java.util.List<SshAgent.Pair<java.security.PublicKey,java.lang.String>> getIdentities()
throws java.io.IOException
- Specified by:
getIdentities in interface SshAgent
- Throws:
java.io.IOException
sign
public byte[] sign(java.security.PublicKey key,
byte[] data)
throws java.io.IOException
- Specified by:
sign in interface SshAgent
- Throws:
java.io.IOException
addIdentity
public void addIdentity(java.security.KeyPair key,
java.lang.String comment)
throws java.io.IOException
- Specified by:
addIdentity in interface SshAgent
- Throws:
java.io.IOException
removeIdentity
public void removeIdentity(java.security.PublicKey key)
throws java.io.IOException
- Specified by:
removeIdentity in interface SshAgent
- Throws:
java.io.IOException
removeAllIdentities
public void removeAllIdentities()
throws java.io.IOException
- Specified by:
removeAllIdentities in interface SshAgent
- Throws:
java.io.IOException
close
public void close()
- Specified by:
close in interface SshAgent
getKeyPair
protected static SshAgent.Pair<java.security.KeyPair,java.lang.String> getKeyPair(java.util.List<SshAgent.Pair<java.security.KeyPair,java.lang.String>> keys,
java.security.PublicKey key)
areKeyEquals
protected static boolean areKeyEquals(java.security.PublicKey k1,
java.security.PublicKey k2)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.