Class CertificateInfo

java.lang.Object
com.inet.report.certificate.CertificateInfo

public class CertificateInfo extends Object
This class contains signature settings.
Since:
9.1
  • Method Details

    • getInstance

      public static CertificateInfo getInstance(@Nonnull @Nonnull String keyStoreType, @Nonnull @Nonnull String keyStorePathOrUrl, @Nonnull @Nonnull String keyStorePassword, String keyAlias, String keyPassword, String digestAlgorithmName) throws IllegalArgumentException
      This method returns an instance of Certificate Info
      Parameters:
      keyStoreType - type of key store, NOT null
      keyStorePathOrUrl - path or URL to key store file, NOT null
      keyStorePassword - key store password, NOT null
      keyAlias - key name (if null, the name will be read from store)
      keyPassword - key password (if null, the store password will be used)
      digestAlgorithmName - digest algorithm name (if null, the default algorithm name will be used)
      Returns:
      instance of CertificateInfo or null if the initializing of the CertificateInfo failed.
      Throws:
      IllegalArgumentException - if the security parameters can not be determined or they are not valid.
      Since:
      9.1
    • getSignatureProcessor

      public com.inet.report.certificate.PDFSignatureProcessor getSignatureProcessor(String digestAlgorithmName)
      FOR INTERNAL USE ONLY returns an instance of PDFSignatureProcessor.
      Parameters:
      digestAlgorithmName - name od digest algorithm.
      Returns:
      instance of signature processor.
    • getCertificate

      public Certificate getCertificate()
      FOR INTERNAL USE ONLY returns the certificate containing signer info or null if no certificate exists.
      Returns:
      the certificate or null.