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 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
protected Buffer createBuffer(byte cmd)
protected abstract Buffer request(Buffer buffer) throws IOException
IOException
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.