SshAgent.Pair<U,V>
SSH_AUTHSOCKET_ENV_NAME
Constructor and Description |
---|
AgentDelegate(SshAgent agent) |
Modifier and Type | Method and Description |
---|---|
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) |
public AgentDelegate(SshAgent agent)
public List<SshAgent.Pair<PublicKey,String>> getIdentities() throws IOException
getIdentities
in interface SshAgent
IOException
public byte[] sign(PublicKey key, byte[] data) throws IOException
sign
in interface SshAgent
IOException
public void addIdentity(KeyPair key, String comment) throws IOException
addIdentity
in interface SshAgent
IOException
public void removeIdentity(PublicKey key) throws IOException
removeIdentity
in interface SshAgent
IOException
public void removeAllIdentities() throws IOException
removeAllIdentities
in interface SshAgent
IOException
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.