Package org.pgpainless.key.protection
Class KeyRingProtectionSettings
- java.lang.Object
-
- org.pgpainless.key.protection.KeyRingProtectionSettings
-
public class KeyRingProtectionSettings extends Object
-
-
Constructor Summary
Constructors Constructor Description KeyRingProtectionSettings(SymmetricKeyAlgorithm encryptionAlgorithm)
KeyRingProtectionSettings(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SymmetricKeyAlgorithm
getEncryptionAlgorithm()
HashAlgorithm
getHashAlgorithm()
int
getS2kCount()
static KeyRingProtectionSettings
secureDefaultSettings()
-
-
-
Constructor Detail
-
KeyRingProtectionSettings
public KeyRingProtectionSettings(@Nonnull SymmetricKeyAlgorithm encryptionAlgorithm)
-
KeyRingProtectionSettings
public KeyRingProtectionSettings(@Nonnull SymmetricKeyAlgorithm encryptionAlgorithm, @Nonnull HashAlgorithm hashAlgorithm, int s2kCount)
-
-
Method Detail
-
secureDefaultSettings
public static KeyRingProtectionSettings secureDefaultSettings()
-
getEncryptionAlgorithm
@Nonnull public SymmetricKeyAlgorithm getEncryptionAlgorithm()
-
getHashAlgorithm
@Nonnull public HashAlgorithm getHashAlgorithm()
-
getS2kCount
public int getS2kCount()
-
-