1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-14 04:39:39 +02:00

Add KeyRingProtectionSettings.secureDefaultSettings() factory method

This commit is contained in:
Paul Schaub 2020-08-31 12:37:34 +02:00
parent 20f32926bb
commit 2af60454f5
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,7 @@ public class PassphraseProtectedKeyTest {
* Protector that holds only the password of cryptie.
*/
private final PasswordBasedSecretKeyRingProtector protector = new PasswordBasedSecretKeyRingProtector(
new KeyRingProtectionSettings(SymmetricKeyAlgorithm.AES_256),
KeyRingProtectionSettings.secureDefaultSettings(),
new SecretKeyPassphraseProvider() {
@Nullable
@Override