Package com.sshtools.common.publickey
Class OpenSSHPublicKeyFile
java.lang.Object
com.sshtools.common.publickey.OpenSSHPublicKeyFile
- All Implemented Interfaces:
SshPublicKeyFile
-
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 filestatic booleanisFormatted(byte[] formattedkey) Convert the key file into a usable SshPublicKey.toString()
-
Method Details
-
toString
-
getFormattedKey
public byte[] getFormattedKey()Description copied from interface:SshPublicKeyFileGet the formatted key.- Specified by:
getFormattedKeyin interfaceSshPublicKeyFile- Returns:
- byte[]
-
toPublicKey
Description copied from interface:SshPublicKeyFileConvert the key file into a usable SshPublicKey.- Specified by:
toPublicKeyin interfaceSshPublicKeyFile- Returns:
- SshPublicKey
- Throws:
IOException
-
getComment
Description copied from interface:SshPublicKeyFileGet the comment applied to the key file.- Specified by:
getCommentin interfaceSshPublicKeyFile- Returns:
- String
-
getOptions
Description copied from interface:SshPublicKeyFileGet the options string applied to the key file- Specified by:
getOptionsin interfaceSshPublicKeyFile- Returns:
- options string
-
isFormatted
public static boolean isFormatted(byte[] formattedkey)
-