public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_SOCKET_TIMEOUT
Property that can be set on the
Session in order to control
the authentication timeout (millis). |
static int |
DEFAULT_AUTH_SOCKET_TIMEOUT |
logCHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT, DEFAULT_PROXY_CHANNEL_TYPE, PROXY_CHANNEL_TYPE| Constructor and Description |
|---|
AgentServerProxy(ConnectionService service) |
AgentServerProxy(ConnectionService service,
CloseableExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
deleteFile(File file,
String msg,
boolean debugEnabled) |
CloseableExecutorService |
getExecutorService() |
String |
getId() |
boolean |
isOpen() |
protected File |
removeSocketFile(String socketPath,
boolean debugEnabled) |
protected void |
signalEOS(AprLibrary libInstance,
boolean debugEnabled) |
static IOException |
toIOException(int code)
transform an APR error number in a more fancy exception
|
getSimplifiedLoggerpublic static final String AUTH_SOCKET_TIMEOUT
Session in order to control
the authentication timeout (millis). If not specified then
DEFAULT_AUTH_SOCKET_TIMEOUT is usedpublic static final int DEFAULT_AUTH_SOCKET_TIMEOUT
public AgentServerProxy(ConnectionService service) throws IOException
IOExceptionpublic AgentServerProxy(ConnectionService service, CloseableExecutorService executor) throws IOException
IOExceptionpublic CloseableExecutorService getExecutorService()
public String getId()
getId in interface SshAgentServerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionprotected File removeSocketFile(String socketPath, boolean debugEnabled) throws Exception
Exceptionprotected void signalEOS(AprLibrary libInstance, boolean debugEnabled) throws Exception
Exceptionpublic static IOException toIOException(int code)
code - APR error codeIOException with the exception details for the given APR error numberCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.