Class CloudSshAgent<K extends CloudKeyInfo>
- java.lang.Object
-
- com.antonzhdanov.apache.sshd.agent.CloudSshAgent<K>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,org.apache.sshd.agent.SshAgent
public class CloudSshAgent<K extends CloudKeyInfo> extends Object implements org.apache.sshd.agent.SshAgent
-
-
Constructor Summary
Constructors Constructor Description CloudSshAgent(Signer<K> signer, PublicKeyLoader<K> publicKeyLoader, SignaturePostProcessor signaturePostProcessor, K keyInfo, SignatureAlgorithmMapper<SignatureAlgorithm,String> signatureAlgorithmMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIdentity(KeyPair key, String comment, org.apache.sshd.agent.SshAgentKeyConstraint... constraints)voidclose()Iterable<com.antonzhdanov.apache.sshd.agent.CloudSshAgent.PublicKeyWithComment>getIdentities()booleanisOpen()voidremoveAllIdentities()voidremoveIdentity(PublicKey key)com.antonzhdanov.apache.sshd.agent.CloudSshAgent.SignatureWithAlgorithmsign(org.apache.sshd.common.session.SessionContext session, PublicKey key, String algo, byte[] data)
-
-
-
Constructor Detail
-
CloudSshAgent
public CloudSshAgent(Signer<K> signer, PublicKeyLoader<K> publicKeyLoader, SignaturePostProcessor signaturePostProcessor, K keyInfo, SignatureAlgorithmMapper<SignatureAlgorithm,String> signatureAlgorithmMapper)
-
-
Method Detail
-
getIdentities
public Iterable<com.antonzhdanov.apache.sshd.agent.CloudSshAgent.PublicKeyWithComment> getIdentities()
- Specified by:
getIdentitiesin interfaceorg.apache.sshd.agent.SshAgent
-
sign
public com.antonzhdanov.apache.sshd.agent.CloudSshAgent.SignatureWithAlgorithm sign(org.apache.sshd.common.session.SessionContext session, PublicKey key, String algo, byte[] data)- Specified by:
signin interfaceorg.apache.sshd.agent.SshAgent
-
addIdentity
public void addIdentity(KeyPair key, String comment, org.apache.sshd.agent.SshAgentKeyConstraint... constraints)
- Specified by:
addIdentityin interfaceorg.apache.sshd.agent.SshAgent
-
removeIdentity
public void removeIdentity(PublicKey key)
- Specified by:
removeIdentityin interfaceorg.apache.sshd.agent.SshAgent
-
removeAllIdentities
public void removeAllIdentities()
- Specified by:
removeAllIdentitiesin interfaceorg.apache.sshd.agent.SshAgent
-
-