protected void closeAgent() throws IOException { if (agent != null) { try { agent.close(); } finally { agent = null; } } }
@Override public void removeAllIdentities() throws IOException { agent.removeAllIdentities(); } }
@Override public List<? extends Map.Entry<PublicKey, String>> getIdentities() throws IOException { return agent.getIdentities(); }
@Override public void addIdentity(KeyPair key, String comment) throws IOException { agent.addIdentity(key, comment); }
@Override public byte[] sign(PublicKey key, byte[] data) throws IOException { return agent.sign(key, data); }
@Override public boolean isOpen() { return agent.isOpen(); }
@Override public void removeIdentity(PublicKey key) throws IOException { agent.removeIdentity(key); }
private void closeAgent() throws IOException { if (agent == null) { return; } try { agent.close(); } finally { agent = null; } }
@Override public void addIdentity(KeyPair key, String comment) throws IOException { agent.addIdentity(key, comment); }
@Override public Iterable<? extends Map.Entry<PublicKey, String>> getIdentities() throws IOException { return agent.getIdentities(); }
@Override public byte[] sign(PublicKey key, byte[] data) throws IOException { return agent.sign(key, data); }
@Override public void removeAllIdentities() throws IOException { agent.removeAllIdentities(); } }
@Override public boolean isOpen() { return agent.isOpen(); }
@Override public void removeIdentity(PublicKey key) throws IOException { agent.removeIdentity(key); }
protected void closeAgent() throws IOException { if (agent != null) { try { agent.close(); } finally { agent = null; } } }
public AgentIdentityIterator(SshAgent agent) throws IOException { this.agent = agent; iter = agent == null ? null : agent.getIdentities().iterator(); }
@Override public byte[] sign(byte[] data) throws Exception { return agent.sign(getPublicKey(), data); }
@Override public byte[] sign(byte[] data) throws Exception { return agent.sign(getPublicKey(), data); }