List of usage examples for java.security.cert X509CRL getCriticalExtensionOIDs
public Set<String> getCriticalExtensionOIDs();
From source file:mitm.common.security.crl.PKIXRevocationChecker.java
private boolean hasUnsupportedCriticalExtensions(X509CRL crl) { Set<String> criticalExtensions = crl.getCriticalExtensionOIDs(); if (criticalExtensions != null) { criticalExtensions.remove(X509Extension.issuingDistributionPoint.getId()); criticalExtensions.remove(X509Extension.deltaCRLIndicator.getId()); criticalExtensions.remove(X509Extension.cRLNumber.getId()); /*/* w w w . jav a2 s .c o m*/ * Some issuers (Verisign) add a critcal Authority Key Identifier to the CRL. * * RFC 3280 explicitly says: * * 4.2.1.1 Authority Key Identifier * .... * This extension MUST NOT be marked critical. * * We will therefore ignore this extension if it's critical * */ criticalExtensions.remove(X509Extension.authorityKeyIdentifier.getId()); } return criticalExtensions != null && criticalExtensions.size() > 0; }