public class OpenSSHPublicKeyFile extends Object implements SshPublicKeyFile
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
|
static boolean |
isFormatted(byte[] formattedkey) |
SshPublicKey |
toPublicKey()
Convert the key file into a usable SshPublicKey.
|
String |
toString() |
public byte[] getFormattedKey()
SshPublicKeyFile
getFormattedKey
in interface SshPublicKeyFile
public SshPublicKey toPublicKey() throws IOException
SshPublicKeyFile
toPublicKey
in interface SshPublicKeyFile
IOException
public String getComment()
SshPublicKeyFile
getComment
in interface SshPublicKeyFile
public String getOptions()
SshPublicKeyFile
getOptions
in interface SshPublicKeyFile
public static boolean isFormatted(byte[] formattedkey)
Copyright © 2024. All rights reserved.