public interface SshPrivateKeyFile
| Modifier and Type | Method and Description |
|---|---|
void |
changePassphrase(String oldpassphrase,
String newpassprase)
Change the passphrase of the key file.
|
byte[] |
getFormattedKey()
Get the formatted key
|
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(String passphrase)
Decode the private key using the users passphrase.
|
boolean isPassphraseProtected()
IOExceptionSshKeyPair toKeyPair(String passphrase) throws IOException, InvalidPassphraseException
passphrase - the users passphraseIOExceptionInvalidPassphraseExceptionboolean supportsPassphraseChange()
String getType()
void changePassphrase(String oldpassphrase, String newpassprase) throws IOException, InvalidPassphraseException
oldpassphrase - the old passphrasenewpassprase - the new passphraseIOExceptionInvalidPassphraseExceptionbyte[] getFormattedKey()
throws IOException
IOExceptionCopyright © 2025. All rights reserved.