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