public abstract class AbstractAgentProxy extends AbstractLoggingBean implements SshAgent, ExecutorServiceCarrier
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
channelType |
private CloseableExecutorService |
executor |
logSSH_AUTHSOCKET_ENV_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAgentProxy(CloseableExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(java.security.KeyPair kp,
java.lang.String comment) |
void |
close() |
protected Buffer |
createBuffer(byte cmd) |
protected Buffer |
createBuffer(byte cmd,
int extraLen) |
java.lang.String |
getChannelType() |
CloseableExecutorService |
getExecutorService() |
java.lang.Iterable<? extends java.util.Map.Entry<java.security.PublicKey,java.lang.String>> |
getIdentities() |
protected Buffer |
prepare(Buffer buffer) |
void |
removeAllIdentities() |
void |
removeIdentity(java.security.PublicKey key) |
protected abstract Buffer |
request(Buffer buffer) |
void |
setChannelType(java.lang.String channelType) |
byte[] |
sign(java.security.PublicKey key,
byte[] data) |
getSimplifiedLoggerprivate CloseableExecutorService executor
private java.lang.String channelType
protected AbstractAgentProxy(CloseableExecutorService executorService)
public java.lang.String getChannelType()
public void setChannelType(java.lang.String channelType)
public CloseableExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierCloseableExecutorService to usepublic java.lang.Iterable<? extends java.util.Map.Entry<java.security.PublicKey,java.lang.String>> getIdentities()
throws java.io.IOException
getIdentities in interface SshAgentjava.io.IOExceptionpublic byte[] sign(java.security.PublicKey key,
byte[] data)
throws java.io.IOException
public void addIdentity(java.security.KeyPair kp,
java.lang.String comment)
throws java.io.IOException
addIdentity in interface SshAgentjava.io.IOExceptionpublic void removeIdentity(java.security.PublicKey key)
throws java.io.IOException
removeIdentity in interface SshAgentjava.io.IOExceptionpublic void removeAllIdentities()
throws java.io.IOException
removeAllIdentities in interface SshAgentjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionprotected Buffer createBuffer(byte cmd)
protected Buffer createBuffer(byte cmd, int extraLen)