|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.apache.sshd.agent.AgentClient
public class AgentClient
A client for a remote SSH agent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Nested classes/interfaces inherited from interface org.apache.sshd.agent.SshAgent |
|---|
SshAgent.Pair<U,V> |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface org.apache.sshd.agent.SshAgent |
|---|
SSH_AUTHSOCKET_ENV_NAME |
| Constructor Summary | |
|---|---|
AgentClient(java.lang.String authSocket)
|
|
| Method Summary | |
|---|---|
void |
addIdentity(java.security.KeyPair key,
java.lang.String comment)
|
void |
close()
|
protected Buffer |
createBuffer(byte cmd)
|
java.util.List<SshAgent.Pair<java.security.PublicKey,java.lang.String>> |
getIdentities()
|
protected void |
messageReceived(Buffer buffer)
|
void |
removeAllIdentities()
|
void |
removeIdentity(java.security.PublicKey key)
|
protected Buffer |
request(Buffer buffer)
|
void |
run()
|
byte[] |
sign(java.security.PublicKey key,
byte[] data)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgentClient(java.lang.String authSocket)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
protected void messageReceived(Buffer buffer)
throws java.lang.Exception
java.lang.Exception
public java.util.List<SshAgent.Pair<java.security.PublicKey,java.lang.String>> getIdentities()
throws java.io.IOException
getIdentities in interface SshAgentjava.io.IOException
public byte[] sign(java.security.PublicKey key,
byte[] data)
throws java.io.IOException
sign in interface SshAgentjava.io.IOException
public void addIdentity(java.security.KeyPair key,
java.lang.String comment)
throws java.io.IOException
addIdentity in interface SshAgentjava.io.IOException
public void removeIdentity(java.security.PublicKey key)
throws java.io.IOException
removeIdentity in interface SshAgentjava.io.IOException
public void removeAllIdentities()
throws java.io.IOException
removeAllIdentities in interface SshAgentjava.io.IOExceptionpublic void close()
close in interface SshAgentprotected Buffer createBuffer(byte cmd)
protected Buffer request(Buffer buffer)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||