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 java.lang.String SSH_AUTHSOCKET_ENV_NAME
           
 
Method Summary
 void addIdentity(java.security.KeyPair key, java.lang.String comment)
           
 void close()
           
 java.util.List<SshAgent.Pair<java.security.PublicKey,java.lang.String>> getIdentities()
           
 void removeAllIdentities()
           
 void removeIdentity(java.security.PublicKey key)
           
 byte[] sign(java.security.PublicKey key, byte[] data)
           
 

Field Detail

SSH_AUTHSOCKET_ENV_NAME

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

getIdentities

java.util.List<SshAgent.Pair<java.security.PublicKey,java.lang.String>> getIdentities()
                                                                                      throws java.io.IOException
Throws:
java.io.IOException

sign

byte[] sign(java.security.PublicKey key,
            byte[] data)
            throws java.io.IOException
Throws:
java.io.IOException

addIdentity

void addIdentity(java.security.KeyPair key,
                 java.lang.String comment)
                 throws java.io.IOException
Throws:
java.io.IOException

removeIdentity

void removeIdentity(java.security.PublicKey key)
                    throws java.io.IOException
Throws:
java.io.IOException

removeAllIdentities

void removeAllIdentities()
                         throws java.io.IOException
Throws:
java.io.IOException

close

void close()


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.