Class PublicKeyUtils

java.lang.Object
org.bouncycastle.bcpg.PublicKeyUtils

public class PublicKeyUtils extends Object
Utility methods related to OpenPGP public key algorithms.
  • Constructor Details

    • PublicKeyUtils

      public PublicKeyUtils()
  • Method Details

    • isSigningAlgorithm

      public static boolean isSigningAlgorithm(int publicKeyAlgorithm)
      Return true, if the public key algorithm that corresponds to the given ID is capable of signing.
      Parameters:
      publicKeyAlgorithm - public key algorithm id
      Returns:
      true if algorithm can sign