Class PkiUtil

java.lang.Object
org.apache.kerby.pkix.PkiUtil

public final class PkiUtil extends Object
Pki utilities.
  • Method Details

    • getSignedData

      public static byte[] getSignedData(PrivateKey privateKey, X509Certificate certificate, byte[] dataToSign, String eContentType) throws PkiException
      Throws:
      PkiException
    • validateSignedData

      public static boolean validateSignedData(SignedData signedData) throws PkiException
      Validates a CMS SignedData using the public key corresponding to the private key used to sign the structure.
      Parameters:
      signedData - The signed Data
      Returns:
      true if the signature is valid.
      Throws:
      PkiException - e