org.apache.sshd.agent.common
Class AgentDelegate

java.lang.Object
  extended by org.apache.sshd.agent.common.AgentDelegate
All Implemented Interfaces:
SshAgent

public class AgentDelegate
extends java.lang.Object
implements SshAgent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.sshd.agent.SshAgent
SshAgent.Pair<U,V>
 
Field Summary
 
Fields inherited from interface org.apache.sshd.agent.SshAgent
SSH_AUTHSOCKET_ENV_NAME
 
Constructor Summary
AgentDelegate(SshAgent agent)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentDelegate

public AgentDelegate(SshAgent agent)
Method Detail

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-2012 The Apache Software Foundation. All Rights Reserved.