public boolean hasUnsupportedCriticalExtension(){
  Set extns=getCriticalExtensionOIDs();
  if (extns == null) {
    return false;
  }
  extns.remove(RFC3280CertPathUtilities.ISSUING_DISTRIBUTION_POINT);
  extns.remove(RFC3280CertPathUtilities.DELTA_CRL_INDICATOR);
  return !extns.isEmpty();
}

public boolean hasUnsupportedCriticalExtension ( ) { Set extns = getCriticalExtensionOIDs ( ) ; if ( extns == null ) { return false ; } extns . remove ( RFC3280CertPathUtilities . ISSUING_DISTRIBUTION_POINT ) ; extns . remove ( RFC3280CertPathUtilities . DELTA_CRL_INDICATOR ) ; return ! extns . isEmpty ( ) ; }
will return true if any extensions are present and marked as critical as we currently dont handle any extensions !
