public class OpenSSHPublicKeyFile extends java.lang.Object implements SshPublicKeyFile
| 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
|
static boolean |
isFormatted(byte[] formattedkey) |
SshPublicKey |
toPublicKey()
Convert the key file into a usable SshPublicKey.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getFormattedKey()
SshPublicKeyFilegetFormattedKey in interface SshPublicKeyFilepublic SshPublicKey toPublicKey() throws java.io.IOException
SshPublicKeyFiletoPublicKey in interface SshPublicKeyFilejava.io.IOExceptionpublic java.lang.String getComment()
SshPublicKeyFilegetComment in interface SshPublicKeyFilepublic java.lang.String getOptions()
SshPublicKeyFilegetOptions in interface SshPublicKeyFilepublic static boolean isFormatted(byte[] formattedkey)
Copyright © 2022. All rights reserved.