Class SolitaryPassphraseProvider
java.lang.Object
org.pgpainless.key.protection.passphrase_provider.SolitaryPassphraseProvider
- All Implemented Interfaces:
SecretKeyPassphraseProvider
Implementation of the
SecretKeyPassphraseProvider that holds a single Passphrase.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPassphraseFor(Long keyId) Return a passphrase for the given key.booleanhasPassphrase(Long keyId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pgpainless.key.protection.passphrase_provider.SecretKeyPassphraseProvider
getPassphraseFor
-
Constructor Details
-
SolitaryPassphraseProvider
-
-
Method Details
-
getPassphraseFor
Description copied from interface:SecretKeyPassphraseProviderReturn a passphrase for the given key. If no record has been found, return null. Note: In case of an unprotected secret key, this method must may not return null, but aPassphrasewith a content of null.- Specified by:
getPassphraseForin interfaceSecretKeyPassphraseProvider- Parameters:
keyId- if of the secret key- Returns:
- passphrase or null, if no passphrase record has been found.
-
hasPassphrase
- Specified by:
hasPassphrasein interfaceSecretKeyPassphraseProvider
-