code: protected void validateCertificate(X509Certificate[] chain) throws com.ibm.wsspi.security.wim.exception.CertificateMapFailedException {
          // validate the certificate array
          if (chain == null || chain.length == 0) {
              throw new com.ibm.wsspi.security.wim.exception.CertificateMapFailedException();
          }
  
          for (X509Certificate cert : chain) {
              if (cert == null) {
                  throw new com.ibm.wsspi.security.wim.exception.CertificateMapFailedException();
              }
          }
      }
docs: Validate an X509 certificate array.
  
  @param chain Certificate chain to validate.
  
  @throws com.ibm.wsspi.security.wim.exception.CertificateMapFailedException The certificate array is invalid because it is null,
  empty or contains an null certificate.