SshAgent.Pair<U,V>SSH_AUTHSOCKET_ENV_NAME| Constructor and Description |
|---|
AgentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(KeyPair key,
String comment) |
protected static boolean |
areKeyEquals(PublicKey k1,
PublicKey k2) |
void |
close() |
List<SshAgent.Pair<PublicKey,String>> |
getIdentities() |
protected static SshAgent.Pair<KeyPair,String> |
getKeyPair(List<SshAgent.Pair<KeyPair,String>> keys,
PublicKey key) |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
byte[] |
sign(PublicKey key,
byte[] data) |
public List<SshAgent.Pair<PublicKey,String>> getIdentities() throws IOException
getIdentities in interface SshAgentIOExceptionpublic byte[] sign(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 SshAgentIOExceptionprotected static SshAgent.Pair<KeyPair,String> getKeyPair(List<SshAgent.Pair<KeyPair,String>> keys, PublicKey key)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.