Class Policy.PublicKeyAlgorithmPolicy

java.lang.Object
org.pgpainless.policy.Policy.PublicKeyAlgorithmPolicy
Enclosing class:
Policy

public static final class Policy.PublicKeyAlgorithmPolicy extends Object
  • Constructor Details

  • Method Details

    • isAcceptable

      public boolean isAcceptable(int algorithmId, int bitStrength)
    • isAcceptable

      public boolean isAcceptable(PublicKeyAlgorithm algorithm, int bitStrength)
    • defaultPublicKeyAlgorithmPolicy

      @Deprecated public static Policy.PublicKeyAlgorithmPolicy defaultPublicKeyAlgorithmPolicy()
      Deprecated.
      not expressive - might be removed in a future release
      Return 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

      public static Policy.PublicKeyAlgorithmPolicy 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: