Package com.compdfkit.core.signature
Class CPDFCertInfo
java.lang.Object
com.compdfkit.core.signature.CPDFCertInfo
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCPDFCertInfo(String version, String serialNumber, String keyType, String signatureAlgOid, CPDFOwnerInfo issuerInfo, CPDFOwnerInfo subjectInfo, String validDateBegin, String validDateEnd, String publicKey, String x509Data, String sha1Digest, String md5Digest, String[] ocspURL, CPDFExtInfo extInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithmType(String algOid) Get algorithm type.Get ext info of the certificate.Get the issuer of the certificate.Get public key algorithm(Certificate algorithm).Get md5 digest.String[]Get ocsp url.Get the public key.Get serial number of the certificate.Get sha1 digest.Get the signature algorithm.Get subject of the certificate.Get the begin valid date.Get the end valid date.Get the certificate version.Get x509 data.
-
Constructor Details
-
CPDFCertInfo
public CPDFCertInfo(String version, String serialNumber, String keyType, String signatureAlgOid, CPDFOwnerInfo issuerInfo, CPDFOwnerInfo subjectInfo, String validDateBegin, String validDateEnd, String publicKey, String x509Data, String sha1Digest, String md5Digest, String[] ocspURL, CPDFExtInfo extInfo)
-
-
Method Details
-
getVersion
Get the certificate version.- Returns:
- Returns the certificate version.
-
getSerialNumber
Get serial number of the certificate.- Returns:
- Returns serial number.
-
getKeyType
Get public key algorithm(Certificate algorithm).- Returns:
- Returns 1:ECC, 2:DSA, 3:DH
-
getSignatureAlgOid
Get the signature algorithm.- Returns:
- Returns 1.2.840.113549.1.1.1: RSA_RSA 1.2.840.113549.1.1.2: MD2RSA 1.2.840.113549.1.1.3: MD4RSA 1.2.840.113549.1.1.4: MD5RSA 1.2.840.113549.1.1.5: SHA1RSA 1.2.840.113549.1.1.11: SHA256RSA 1.2.156.10197.1.501: SM3SM2
-
getAlgorithmType
Get algorithm type.- Parameters:
algOid- Algorithm oid.- Returns:
- algorithm type.
-
getIssuer
Get the issuer of the certificate.- Returns:
- Returns issuer of the certificate.
-
getSubject
Get subject of the certificate.- Returns:
- Returns subject of the certificate.
-
getValidDateBegin
Get the begin valid date.- Returns:
- Returns the begin valid date.
-
getValidDateEnd
Get the end valid date.- Returns:
- Returns the end valid date.
-
getPublicKey
Get the public key.- Returns:
- Returns the public key.
-
getX509Data
Get x509 data.- Returns:
- Returns x509 data.
-
getSha1Digest
Get sha1 digest.- Returns:
- Returns sha1 digest.
-
getMd5Digest
Get md5 digest.- Returns:
- Returns md5 digest.
-
getExtInfo
Get ext info of the certificate.- Returns:
- Returns ext info.
-
getOcspURL
Get ocsp url.- Returns:
- Returns ocsp url
-