code: @Override
      public void check(Certificate cert, Collection<String> unresCritExts)
          throws CertPathValidatorException
      {
          // now do the policy checks
          checkPolicy((X509Certificate) cert);
  
          if (unresCritExts != null && !unresCritExts.isEmpty()) {
              unresCritExts.remove(CertificatePolicies_Id.toString());
              unresCritExts.remove(PolicyMappings_Id.toString());
              unresCritExts.remove(PolicyConstraints_Id.toString());
              unresCritExts.remove(InhibitAnyPolicy_Id.toString());
          }
      }
docs: Performs the policy processing checks on the certificate using its
  internal state.
  
  @param cert the Certificate to be processed
  @param unresCritExts the unresolved critical extensions
  @throws CertPathValidatorException if the certificate does not verify