Interface SshPublicKeyFile

All Known Implementing Classes:
OpenSSHPublicKeyFile, SECSHPublicKeyFile

public interface SshPublicKeyFile
Interface which all public key formats must implement to provide decoding of the public key into a suitable format for the API.
Author:
Lee David Painter
  • Method Details

    • toPublicKey

      SshPublicKey toPublicKey() throws IOException
      Convert the key file into a usable SshPublicKey.
      Returns:
      SshPublicKey
      Throws:
      IOException
    • getComment

      String getComment()
      Get the comment applied to the key file.
      Returns:
      String
    • getFormattedKey

      byte[] getFormattedKey() throws IOException
      Get the formatted key.
      Returns:
      byte[]
      Throws:
      IOException
    • getOptions

      String getOptions()
      Get the options string applied to the key file
      Returns:
      options string