Package com.inet.report.certificate
Class CertificateInfo
- java.lang.Object
-
- com.inet.report.certificate.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 Infocom.inet.report.certificate.PDFSignatureProcessor
getSignatureProcessor(java.lang.String digestAlgorithmName)
FOR INTERNAL USE ONLY returns an instance of PDFSignatureProcessor.
-
-
-
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 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:
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.
-
-