public abstract class AbstractAgentProxy extends AbstractLoggingBean implements SshAgent, ExecutorServiceConfigurer
log
SSH_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) |
public ExecutorService getExecutorService()
getExecutorService
in interface ExecutorServiceCarrier
public void setExecutorService(ExecutorService service)
setExecutorService
in interface ExecutorServiceConfigurer
public boolean isShutdownOnExit()
isShutdownOnExit
in interface ExecutorServiceCarrier
true
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 ExecutorServiceConfigurer
public List<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 kp, 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
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
protected Buffer createBuffer(byte cmd)
protected Buffer createBuffer(byte cmd, int extraLen)
protected abstract Buffer request(Buffer buffer) throws IOException
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.