Class AgentIdentity

java.lang.Object
com.hierynomus.sshj.userauth.agent.AgentIdentity

public class AgentIdentity extends Object
An identity held by an SSH agent: a public key, its exact wire encoding (the "key blob" that must be sent back verbatim in a sign request) and the human-readable comment.
  • Constructor Details

    • AgentIdentity

      public AgentIdentity(PublicKey publicKey, byte[] keyBlob, String comment)
  • Method Details

    • getPublicKey

      public PublicKey getPublicKey()
    • getKeyBlob

      public byte[] getKeyBlob()
      Returns:
      the exact key blob bytes as returned by the agent.
    • getComment

      public String getComment()
    • toString

      public String toString()
      Overrides:
      toString in class Object