public abstract class AbstractAgentProxy extends Object implements SshAgent
SshAgent.Pair<U,V>SSH_AUTHSOCKET_ENV_NAME| Constructor and Description |
|---|
AbstractAgentProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(KeyPair key,
String comment) |
void |
close() |
protected Buffer |
createBuffer(byte cmd) |
List<SshAgent.Pair<PublicKey,String>> |
getIdentities() |
protected Buffer |
prepare(Buffer buffer) |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
protected abstract Buffer |
request(Buffer buffer) |
byte[] |
sign(PublicKey key,
byte[] data) |
public List<SshAgent.Pair<PublicKey,String>> getIdentities() throws IOException
getIdentities in interface SshAgentIOExceptionpublic byte[] sign(PublicKey key, byte[] data) throws IOException
sign in interface SshAgentIOExceptionpublic void addIdentity(KeyPair key, String comment) throws IOException
addIdentity in interface SshAgentIOExceptionpublic void removeIdentity(PublicKey key) throws IOException
removeIdentity in interface SshAgentIOExceptionpublic void removeAllIdentities()
throws IOException
removeAllIdentities in interface SshAgentIOExceptionprotected Buffer createBuffer(byte cmd)
protected abstract Buffer request(Buffer buffer) throws IOException
IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.