Package eu.europa.esig.dss.crl
Class CRLUtils
java.lang.Object
eu.europa.esig.dss.crl.CRLUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic CRLBinarybuildCRLBinary(byte[] binaries) Takes binaries and returns DER encodedCRLBinarystatic CRLValiditybuildCRLValidity(CRLBinary crlBinary, CertificateToken issuerToken) This method verifies and creates: the signature of the CRL, the key usage of its signing certificate and the coherence between the subject names of the CRL signing certificate and the issuer name of the certificate for which the verification of the revocation data is carried out.static X509CRLEntrygetRevocationInfo(CRLValidity crlValidity, BigInteger serialNumber) This method verifies the revocation status for a given serial number
-
Method Details
-
buildCRLBinary
-
buildCRLValidity
public static CRLValidity buildCRLValidity(CRLBinary crlBinary, CertificateToken issuerToken) throws IOException This method verifies and creates: the signature of the CRL, the key usage of its signing certificate and the coherence between the subject names of the CRL signing certificate and the issuer name of the certificate for which the verification of the revocation data is carried out. A dedicated object based onCRLValidityis created and accordingly updated.- Parameters:
crlBinary-CRLBinaryof the CRL to be created (cannot be null)issuerToken-CertificateTokenused to sign theX509CRL(cannot be null)- Returns:
CRLValidity- Throws:
IOException- if an IO error occurred
-
getRevocationInfo
This method verifies the revocation status for a given serial number- Parameters:
crlValidity- the CRL ValidityserialNumber- the certificate serial number to search- Returns:
- the X509CRLEntry with the revocation date, the reason, or null if the serial number is not found
-