SSH_AUTHSOCKET_ENV_NAME
Constructor and Description |
---|
AgentImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addIdentity(KeyPair key,
String comment) |
void |
close() |
List<Pair<PublicKey,String>> |
getIdentities() |
protected static Pair<KeyPair,String> |
getKeyPair(Collection<Pair<KeyPair,String>> keys,
PublicKey key) |
boolean |
isOpen() |
void |
removeAllIdentities() |
void |
removeIdentity(PublicKey key) |
byte[] |
sign(PublicKey key,
byte[] data) |
public List<Pair<PublicKey,String>> getIdentities() throws IOException
getIdentities
in interface SshAgent
IOException
public byte[] sign(PublicKey key, byte[] data) throws IOException
sign
in interface SshAgent
IOException
public void addIdentity(KeyPair key, String comment) throws IOException
addIdentity
in interface SshAgent
IOException
public void removeIdentity(PublicKey key) throws IOException
removeIdentity
in interface SshAgent
IOException
public void removeAllIdentities() throws IOException
removeAllIdentities
in interface SshAgent
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.