Package com.sshtools.common.publickey
Class SECSHPublicKeyFile
java.lang.Object
com.sshtools.common.publickey.Base64EncodedFileFormat
com.sshtools.common.publickey.SECSHPublicKeyFile
- All Implemented Interfaces:
SshPublicKeyFile
-
Field Summary
Fields inherited from class com.sshtools.common.publickey.Base64EncodedFileFormat
begin, end -
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 filevoidsetComment(String comment) Convert the key file into a usable SshPublicKey.toString()Methods inherited from class com.sshtools.common.publickey.Base64EncodedFileFormat
formatKey, getHeaderValue, getKeyBlob, isFormatted, setHeaderValue
-
Method Details
-
getComment
Description copied from interface:SshPublicKeyFileGet the comment applied to the key file.- Specified by:
getCommentin interfaceSshPublicKeyFile- Returns:
- String
-
toPublicKey
Description copied from interface:SshPublicKeyFileConvert the key file into a usable SshPublicKey.- Specified by:
toPublicKeyin interfaceSshPublicKeyFile- Returns:
- SshPublicKey
- Throws:
IOException
-
getFormattedKey
Description copied from interface:SshPublicKeyFileGet the formatted key.- Specified by:
getFormattedKeyin interfaceSshPublicKeyFile- Returns:
- byte[]
- Throws:
IOException
-
setComment
-
toString
-
getOptions
Description copied from interface:SshPublicKeyFileGet the options string applied to the key file- Specified by:
getOptionsin interfaceSshPublicKeyFile- Returns:
- options string
-