Package org.pgpainless.policy
Class Policy.PublicKeyAlgorithmPolicy
java.lang.Object
org.pgpainless.policy.Policy.PublicKeyAlgorithmPolicy
- Enclosing class:
Policy
-
Constructor Summary
ConstructorsConstructorDescriptionPublicKeyAlgorithmPolicy
(Map<PublicKeyAlgorithm, Integer> minimalAlgorithmBitStrengths) -
Method Summary
Modifier and TypeMethodDescriptionThis policy is based upon recommendations made by the German Federal Office for Information Security (BSI).Deprecated.not expressive - might be removed in a future releaseboolean
isAcceptable
(int algorithmId, int bitStrength) boolean
isAcceptable
(PublicKeyAlgorithm algorithm, int bitStrength)
-
Constructor Details
-
PublicKeyAlgorithmPolicy
-
-
Method Details
-
isAcceptable
public boolean isAcceptable(int algorithmId, int bitStrength) -
isAcceptable
-
defaultPublicKeyAlgorithmPolicy
Deprecated.not expressive - might be removed in a future releaseReturn PGPainless' default public key algorithm policy. This policy is based upon recommendations made by the German Federal Office for Information Security (BSI).- Returns:
- default algorithm policy
-
bsi2021PublicKeyAlgorithmPolicy
This policy is based upon recommendations made by the German Federal Office for Information Security (BSI). Basically this policy requires keys based on elliptic curves to have a bit strength of at least 250, and keys based on prime number factorization / discrete logarithm problems to have a strength of at least 2000 bits.- Returns:
- default algorithm policy
- See Also:
-