public interface SshPrivateKeyFile
| Modifier and Type | Method and Description |
|---|---|
void |
changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassprase)
Change the passphrase of the key file.
|
java.lang.String |
getComment()
The private key comment (if any).
|
byte[] |
getFormattedKey()
Get the formatted key
|
java.lang.String |
getType()
Get a description of the format type e.g.
|
boolean |
isPassphraseProtected()
Determine if the private key file is protected by a passphrase.
|
boolean |
supportsPassphraseChange()
Method to determine whether the format supports changing of passphrases.
|
SshKeyPair |
toKeyPair(java.lang.String passphrase)
Decode the private key using the users passphrase.
|
boolean isPassphraseProtected()
java.io.IOExceptionSshKeyPair toKeyPair(java.lang.String passphrase) throws java.io.IOException, InvalidPassphraseException
passphrase - the users passphrasejava.io.IOExceptionInvalidPassphraseExceptionboolean supportsPassphraseChange()
java.lang.String getType()
void changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassprase)
throws java.io.IOException,
InvalidPassphraseException
oldpassphrase - the old passphrasenewpassprase - the new passphrasejava.io.IOExceptionInvalidPassphraseExceptionbyte[] getFormattedKey()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getComment()
Copyright © 2022. All rights reserved.