public abstract class AbstractAgentProxy extends AbstractLoggingBean implements SshAgent, ExecutorServiceCarrier
logSSH_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) |
Map.Entry<String,byte[]> |
sign(SessionContext session,
PublicKey key,
String algo,
byte[] data) |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveLocalIdentityprotected AbstractAgentProxy(CloseableExecutorService executorService)
public String getChannelType()
public void setChannelType(String channelType)
public CloseableExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierpublic Iterable<? extends Map.Entry<PublicKey,String>> getIdentities() throws IOException
getIdentities in interface SshAgentIOExceptionpublic Map.Entry<String,byte[]> sign(SessionContext session, PublicKey key, String algo, byte[] data) throws IOException
sign in interface SshAgentsession - The current SessionContextkey - The PublicKey to use for signingalgo - Recommended signature algorithm - if null/empty then one will be selected based on
the key type and/or signature factories. Note: even if specific algorithm specified,
the implementation may disregard and choose anotherdata - Data to signIOException - If failed to signpublic 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–2021 The Apache Software Foundation. All rights reserved.