org.apache.sshd.agent
Class AgentServer
java.lang.Object
org.apache.sshd.agent.AgentServer
- All Implemented Interfaces:
- SshAgent
public class AgentServer
- extends java.lang.Object
- implements SshAgent
A server for an SSH Agent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentServer
public AgentServer()
start
public java.lang.String start()
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
- Specified by:
close in interface SshAgent
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
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.