public interface SshPublicKeyFile
SshPublicKey. Provider implementations are
capable of reading some known public key format, and presenting as an
instance of this interface.| Modifier and Type | Field and Description |
|---|---|
static int |
OPENSSH_FORMAT
OpenSSH
|
static int |
SECSH_FORMAT
SECSH
|
static int |
SSH1_FORMAT
SSH1
|
static int |
SSHTOOLS_FORMAT
SSHTools
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComment()
Get any comment stored with this key (if supported by provider / format).
|
int |
getFormat()
Get the format of this key.
|
byte[] |
getFormattedKey()
Format the key for storage.
|
java.lang.String |
getOptions()
Get any additional options stored with this key (if supported by provider
/ format)
|
SshPublicKey |
getPublicKey()
Get the actual public key.
|
static final int OPENSSH_FORMAT
static final int SECSH_FORMAT
static final int SSH1_FORMAT
static final int SSHTOOLS_FORMAT
int getFormat()
SshPublicKey getPublicKey() throws SshException
SshExceptionjava.lang.String getComment()
byte[] getFormattedKey()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getOptions()
Copyright © 2018. All rights reserved.