| Modifier and Type | Field and Description |
|---|---|
private SshAgent |
agent |
SSH_AUTHSOCKET_ENV_NAME| Constructor and Description |
|---|
AgentDelegate(SshAgent agent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(java.security.KeyPair key,
java.lang.String comment) |
void |
close() |
java.lang.Iterable<? extends java.util.Map.Entry<java.security.PublicKey,java.lang.String>> |
getIdentities() |
boolean |
isOpen() |
void |
removeAllIdentities() |
void |
removeIdentity(java.security.PublicKey key) |
byte[] |
sign(java.security.PublicKey key,
byte[] data) |
private final SshAgent agent
public AgentDelegate(SshAgent agent)
public boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic 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 key,
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.IOException