SSH_AUTHSOCKET_ENV_NAME| Constructor and Description |
|---|
AgentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(KeyPair key,
String comment) |
void |
close() |
Iterable<? extends Map.Entry<PublicKey,String>> |
getIdentities() |
protected static Map.Entry<KeyPair,String> |
getKeyPair(Collection<? extends Map.Entry<KeyPair,String>> keys,
PublicKey key) |
boolean |
isOpen() |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
byte[] |
sign(SessionContext session,
PublicKey key,
byte[] data) |
public Iterable<? extends Map.Entry<PublicKey,String>> getIdentities() throws IOException
getIdentities in interface SshAgentIOExceptionpublic byte[] sign(SessionContext session, PublicKey key, byte[] data) throws IOException
sign in interface SshAgentIOExceptionpublic void addIdentity(KeyPair key, 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 ChannelIOExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.