Package com.sshtools.common.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
Modifier and TypeMethodDescriptionGet the comment applied to the key file.byte[]Get the formatted key.Get the options string applied to the key fileConvert the key file into a usable SshPublicKey.
-
Method Details
-
toPublicKey
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
Get the formatted key.- Returns:
- byte[]
- Throws:
IOException
-
getOptions
String getOptions()Get the options string applied to the key file- Returns:
- options string
-