# Package org.pgpainless.key.protection

package org.pgpainless.key.protection
Classes related to OpenPGP secret key password protection.

Related Packages
Package
Description
org.pgpainless.key
Classes related to OpenPGP keys.
org.pgpainless.key.protection.fixes
Secret Key Protection Fixes.
org.pgpainless.key.protection.passphrase_provider
Passphrase Provider classes.
Class
Description
BaseSecretKeyRingProtector
Basic `SecretKeyRingProtector` implementation that respects the users `KeyRingProtectionSettings` when encrypting keys.
CachingSecretKeyRingProtector
Implementation of the `SecretKeyRingProtector` which holds a map of key ids and their passwords.
KeyRingProtectionSettings
Secret key protection settings for iterated and salted S2K.
PasswordBasedSecretKeyRingProtector
Provides `PBESecretKeyDecryptor` and `PBESecretKeyEncryptor` objects while getting the passphrases from a `SecretKeyPassphraseProvider` and using settings from an `KeyRingProtectionSettings`.
SecretKeyRingProtector
Task of the `SecretKeyRingProtector` is to map encryptor/decryptor objects to key-ids.
UnlockSecretKey
UnprotectedKeysProtector
Implementation of the `SecretKeyRingProtector` which assumes that all handled keys are not password protected.