Package com.inet.report.certificate
Class CertificateInfo
java.lang.Object
com.inet.report.certificate.CertificateInfo
This class contains signature settings.
- Since:
- 9.1
-
Method Summary
Modifier and TypeMethodDescriptionFOR INTERNAL USE ONLY returns the certificate containing signer info or null if no certificate exists.static CertificateInfo
getInstance
(@Nonnull String keyStoreType, @Nonnull String keyStorePathOrUrl, @Nonnull String keyStorePassword, String keyAlias, String keyPassword, String digestAlgorithmName) This method returns an instance of Certificate Infocom.inet.report.certificate.PDFSignatureProcessor
getSignatureProcessor
(String digestAlgorithmName) FOR INTERNAL USE ONLY returns an instance of PDFSignatureProcessor.
-
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 nullkeyStorePathOrUrl
- path or URL to key store file, NOT nullkeyStorePassword
- key store password, NOT nullkeyAlias
- 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
FOR INTERNAL USE ONLY returns the certificate containing signer info or null if no certificate exists.- Returns:
- the certificate or null.
-