|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface which all private key formats must implement to provide decoding and decryption of the private key into a suitable format for the API.
| Method Summary | |
void |
changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassprase)
Change the passphrase of the key file. |
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. |
| Method Detail |
public boolean isPassphraseProtected()
java.io.IOException
public SshKeyPair toKeyPair(java.lang.String passphrase)
throws java.io.IOException,
InvalidPassphraseException
passphrase - the users passphrase
java.io.IOException
InvalidPassphraseExceptionpublic boolean supportsPassphraseChange()
public java.lang.String getType()
public void changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassprase)
throws java.io.IOException,
InvalidPassphraseException
oldpassphrase - the old passphrasenewpassprase - the new passphrase
java.io.IOException
InvalidPassphraseException
public byte[] getFormattedKey()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||