public abstract class AbstractAgentProxy extends AbstractLoggingBean implements SshAgent, ExecutorServiceConfigurer
logSSH_AUTHSOCKET_ENV_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAgentProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(KeyPair kp,
String comment) |
void |
close() |
protected Buffer |
createBuffer(byte cmd) |
protected Buffer |
createBuffer(byte cmd,
int extraLen) |
ExecutorService |
getExecutorService() |
List<Pair<PublicKey,String>> |
getIdentities() |
boolean |
isShutdownOnExit() |
protected Buffer |
prepare(Buffer buffer) |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
protected abstract Buffer |
request(Buffer buffer) |
void |
setExecutorService(ExecutorService service) |
void |
setShutdownOnExit(boolean shutdown) |
byte[] |
sign(PublicKey key,
byte[] data) |
getSimplifiedLoggerpublic ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierExecutorService to usepublic void setExecutorService(ExecutorService service)
setExecutorService in interface ExecutorServiceConfigurerpublic boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public void setShutdownOnExit(boolean shutdown)
setShutdownOnExit in interface ExecutorServiceConfigurerpublic List<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 kp, 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 SshAgentIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionprotected Buffer createBuffer(byte cmd)
protected Buffer createBuffer(byte cmd, int extraLen)
protected abstract Buffer request(Buffer buffer) throws IOException
IOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.