public abstract class AbstractAgentProxy extends AbstractLoggingBean implements SshAgent, ExecutorServiceCarrier
log
SSH_AUTHSOCKET_ENV_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractAgentProxy(CloseableExecutorService executorService) |
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) |
String |
getChannelType() |
CloseableExecutorService |
getExecutorService() |
Iterable<? extends Map.Entry<PublicKey,String>> |
getIdentities() |
protected Buffer |
prepare(Buffer buffer) |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
protected abstract Buffer |
request(Buffer buffer) |
void |
setChannelType(String channelType) |
byte[] |
sign(PublicKey key,
byte[] data) |
getSimplifiedLogger
protected AbstractAgentProxy(CloseableExecutorService executorService)
public String getChannelType()
public void setChannelType(String channelType)
public CloseableExecutorService getExecutorService()
getExecutorService
in interface ExecutorServiceCarrier
CloseableExecutorService
to usepublic Iterable<? extends Map.Entry<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–2022 The Apache Software Foundation. All rights reserved.