Class KeyAgentIdentity

java.lang.Object
org.apache.sshd.client.auth.pubkey.KeyAgentIdentity
All Implemented Interfaces:
org.apache.sshd.client.auth.pubkey.PublicKeyIdentity

public class KeyAgentIdentity extends Object implements org.apache.sshd.client.auth.pubkey.PublicKeyIdentity
Uses an SshAgent to generate the identity signature
Author:
Apache MINA SSHD Project
  • Constructor Details

  • Method Details

    • getKeyIdentity

      public KeyPair getKeyIdentity()
      Specified by:
      getKeyIdentity in interface org.apache.sshd.client.auth.pubkey.PublicKeyIdentity
    • getComment

      public String getComment()
    • sign

      public Map.Entry<String,byte[]> sign(org.apache.sshd.common.session.SessionContext session, String algo, byte[] data) throws Exception
      Specified by:
      sign in interface org.apache.sshd.client.auth.pubkey.PublicKeyIdentity
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object