org.apache.sshd.agent
Interface SshAgent

All Known Implementing Classes:
AgentClient, AgentLocal, AgentServer

public interface SshAgent

SSH key agent server


Nested Class Summary
static class SshAgent.Pair<U,V>
           
 
Field Summary
static String SSH_AUTHSOCKET_ENV_NAME
           
 
Method Summary
 void addIdentity(KeyPair key, String comment)
           
 void close()
           
 List<SshAgent.Pair<PublicKey,String>> getIdentities()
           
 void removeAllIdentities()
           
 void removeIdentity(PublicKey key)
           
 byte[] sign(PublicKey key, byte[] data)
           
 

Field Detail

SSH_AUTHSOCKET_ENV_NAME

static final String SSH_AUTHSOCKET_ENV_NAME
See Also:
Constant Field Values
Method Detail

getIdentities

List<SshAgent.Pair<PublicKey,String>> getIdentities()
                                                    throws IOException
Throws:
IOException

sign

byte[] sign(PublicKey key,
            byte[] data)
            throws IOException
Throws:
IOException

addIdentity

void addIdentity(KeyPair key,
                 String comment)
                 throws IOException
Throws:
IOException

removeIdentity

void removeIdentity(PublicKey key)
                    throws IOException
Throws:
IOException

removeAllIdentities

void removeAllIdentities()
                         throws IOException
Throws:
IOException

close

void close()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.