com.sshtools.publickey
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 Summary
 String getComment()
          Get the comment applied to the key file.
 byte[] getFormattedKey()
          Get the formatted key.
 SshPublicKey toPublicKey()
          Convert the key file into a usable SshPublicKey.
 

Method Detail

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


Copyright © 2012. All Rights Reserved.