Class CertificateInfo


  • public class CertificateInfo
    extends java.lang.Object
    This class contains signature settings.
    Since:
    9.1
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.cert.Certificate getCertificate()
      FOR INTERNAL USE ONLY returns the certificate containing signer info or null if no certificate exists.
      static CertificateInfo getInstance​(java.lang.String keyStoreType, java.lang.String keyStorePathOrUrl, java.lang.String keyStorePassword, java.lang.String keyAlias, java.lang.String keyPassword, java.lang.String digestAlgorithmName)
      This method returns an instance of Certificate Info
      com.inet.report.certificate.PDFSignatureProcessor getSignatureProcessor​(java.lang.String digestAlgorithmName)
      FOR INTERNAL USE ONLY returns an instance of PDFSignatureProcessor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static CertificateInfo getInstance​(@Nonnull
                                                  java.lang.String keyStoreType,
                                                  @Nonnull
                                                  java.lang.String keyStorePathOrUrl,
                                                  @Nonnull
                                                  java.lang.String keyStorePassword,
                                                  java.lang.String keyAlias,
                                                  java.lang.String keyPassword,
                                                  java.lang.String digestAlgorithmName)
                                           throws java.lang.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:
        java.lang.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​(java.lang.String digestAlgorithmName)
        FOR INTERNAL USE ONLY returns an instance of PDFSignatureProcessor.
        Parameters:
        digestAlgorithmName - name od digest algorithm.
        Returns:
        instance of signature processor.
      • getCertificate

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