com.sshtools.publickey
Interface SshPublicKeyFile


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
 java.lang.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

public SshPublicKey toPublicKey()
                         throws java.io.IOException
Convert the key file into a usable SshPublicKey.

Returns:
Throws:
java.io.IOException

getComment

public java.lang.String getComment()
Get the comment applied to the key file.

Returns:

getFormattedKey

public byte[] getFormattedKey()
                       throws java.io.IOException
Get the formatted key.

Returns:
Throws:
java.io.IOException


Copyright © 2003 3SP LTD. All Rights Reserved.