Package org.bouncycastle.openpgp.api
Interface KeyPassphraseProvider
- All Known Implementing Classes:
KeyPassphraseProvider.DefaultKeyPassphraseProvider
public interface KeyPassphraseProvider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionchar[]
Return the passphrase for the given key.
-
Method Details
-
getKeyPassword
Return the passphrase for the given key. This callback is only fired, if the key is locked and a passphrase is required to unlock it. Returning null means, that the passphrase is not available.- Parameters:
key
- the locked (sub-)key.- Returns:
- passphrase or null
-