public class SECSHPublicKeyFile extends Base64EncodedFileFormat implements SshPublicKeyFile
begin, end| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComment()
Get the comment applied to the key file.
|
byte[] |
getFormattedKey()
Get the formatted key.
|
java.lang.String |
getOptions()
Get the options string applied to the key file
|
void |
setComment(java.lang.String comment) |
SshPublicKey |
toPublicKey()
Convert the key file into a usable SshPublicKey.
|
java.lang.String |
toString() |
formatKey, getHeaderValue, getKeyBlob, isFormatted, setHeaderValuepublic java.lang.String getComment()
SshPublicKeyFilegetComment in interface SshPublicKeyFilepublic SshPublicKey toPublicKey() throws java.io.IOException
SshPublicKeyFiletoPublicKey in interface SshPublicKeyFilejava.io.IOExceptionpublic byte[] getFormattedKey()
throws java.io.IOException
SshPublicKeyFilegetFormattedKey in interface SshPublicKeyFilejava.io.IOExceptionpublic void setComment(java.lang.String comment)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getOptions()
SshPublicKeyFilegetOptions in interface SshPublicKeyFileCopyright © 2022. All rights reserved.