<p>
Filter the certificate list by status value.
</p>

@param certificateStatuses
Filter the certificate list by status value.
@return Returns a reference to this object so that method calls can be chained together.
@see CertificateStatus
332834
public ListCertificatesRequest withCertificateStatuses(CertificateStatus... certificateStatuses) {
        java.util.ArrayList<String> certificateStatusesCopy = new java.util.ArrayList<String>(certificateStatuses.length);
        for (CertificateStatus value : certificateStatuses) {
            certificateStatusesCopy.add(value.toString());
        }
        if (getCertificateStatuses() == null) {
            setCertificateStatuses(certificateStatusesCopy);
        } else {
            getCertificateStatuses().addAll(certificateStatusesCopy);
        }
        return this;
    }
927525
public static ssl_key[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ssl_key obj = new ssl_key();
		options option = new options();
		option.set_filter(filter);
		ssl_key[] response = (ssl_key[]) obj.getfiltered(service, option);
		return response;
	}
423381
private void getMatchingEECerts(ForwardState currentState,
                                    List<CertStore> certStores,
                                    Collection<X509Certificate> eeCerts)
        throws IOException
    {
        if (debug != null) {
            debug.println("ForwardBuilder.getMatchingEECerts()...");
        }
        /*
         * Compose a certificate matching rule to filter out
         * certs which don't satisfy constraints
         *
         * First, retrieve clone of current target cert constraints,
         * and then add more selection criteria based on current validation
         * state. Since selector never changes, cache local copy & reuse.
         */
        if (eeSelector == null) {
            eeSelector = (X509CertSelector) targetCertConstraints.clone();

            /*
             * Match on certificate validity date
             */
            eeSelector.setCertificateValid(buildParams.date());

            /*
             * Policy processing optimizations
             */
            if (buildParams.explicitPolicyRequired()) {
                eeSelector.setPolicy(getMatchingPolicies());
            }
            /*
             * Require EE certs
             */
            eeSelector.setBasicConstraints(-2);
        }

        /* Retrieve matching EE certs from CertStores */
        addMatchingCerts(eeSelector, certStores, eeCerts, searchAllCertStores);
    }
855056
public X509Certificate[] getCertificates() {
        if (this.certSubjectDNMap == null) {
            return null;
        }
        Collection certs = this.certSubjectDNMap.values();
        return (X509Certificate[]) certs.toArray(new X509Certificate[certs.size()]);
    }
952271
private boolean filter(Class<?> clazz, List<ClassFilter> filters) {
        boolean flag = true;
        for (ClassFilter filter : filters) {
            if (filter.filter(clazz)) {
                flag = false;
                break;
            }
        }
        return flag;
    }
881048
public static sslcertkey[] get_filtered(nitro_service service, String filter) throws Exception{
		sslcertkey obj = new sslcertkey();
		options option = new options();
		option.set_filter(filter);
		sslcertkey[] response = (sslcertkey[]) obj.getfiltered(service, option);
		return response;
	}
636878
public static sslcipher[] get_filtered(nitro_service service, String filter) throws Exception{
		sslcipher obj = new sslcipher();
		options option = new options();
		option.set_filter(filter);
		sslcipher[] response = (sslcipher[]) obj.getfiltered(service, option);
		return response;
	}
1108960
public static xen_health_ssl_core[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_health_ssl_core obj = new xen_health_ssl_core();
		options option = new options();
		option.set_filter(filter);
		xen_health_ssl_core[] response = (xen_health_ssl_core[]) obj.getfiltered(service, option);
		return response;
	}
1179898
public String[] getServerAliases(String keyType, Principal[] issuers) {
        return certMapping.values().toArray(new String[certMapping.size()]);
    }
638231
public static dnsnsecrec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsnsecrec obj = new dnsnsecrec();
		options option = new options();
		option.set_filter(filter);
		dnsnsecrec[] response = (dnsnsecrec[]) obj.getfiltered(service, option);
		return response;
	}
459858
public void setCertificates(java.util.Collection<CACertificate> certificates) {
        if (certificates == null) {
            this.certificates = null;
            return;
        }

        this.certificates = new java.util.ArrayList<CACertificate>(certificates);
    }
732545
public static configstatus[] get_filtered(nitro_service service, String filter) throws Exception{
		configstatus obj = new configstatus();
		options option = new options();
		option.set_filter(filter);
		configstatus[] response = (configstatus[]) obj.getfiltered(service, option);
		return response;
	}
963858
public Certificate getMatchingCert(TLSARecord tlsaRecord, List<Certificate> certs) {

        for (Certificate cert : certs) {

            byte[] digestMatch = new byte[0];
            byte[] selectorData = new byte[0];

            try {
                // Get Selector Value
                switch (tlsaRecord.getSelector()) {
                    case TLSARecord.Selector.FULL_CERTIFICATE:
                        selectorData = cert.getEncoded();
                        break;

                    case TLSARecord.Selector.SUBJECT_PUBLIC_KEY_INFO:
                        selectorData = cert.getPublicKey().getEncoded();
                        break;
                }

                // Validate Matching Type
                switch (tlsaRecord.getMatchingType()) {
                    case TLSARecord.MatchingType.EXACT:
                        digestMatch = selectorData;
                        break;
                    case TLSARecord.MatchingType.SHA256:
                        digestMatch = MessageDigest.getInstance("SHA-256").digest(selectorData);
                        break;
                    case TLSARecord.MatchingType.SHA512:
                        digestMatch = MessageDigest.getInstance("SHA-512").digest(selectorData);
                        break;
                }
            } catch (Exception e) {
                e.printStackTrace();
            }

            if (Arrays.equals(digestMatch, tlsaRecord.getCertificateAssociationData())) {
                return cert;
            }
        }

        return null;
    }
1027536
public static systemcmdpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		systemcmdpolicy obj = new systemcmdpolicy();
		options option = new options();
		option.set_filter(filter);
		systemcmdpolicy[] response = (systemcmdpolicy[]) obj.getfiltered(service, option);
		return response;
	}
1258471
public static sslcertlink[] get_filtered(nitro_service service, String filter) throws Exception{
		sslcertlink obj = new sslcertlink();
		options option = new options();
		option.set_filter(filter);
		sslcertlink[] response = (sslcertlink[]) obj.getfiltered(service, option);
		return response;
	}
698500
private ArrayList<String> searchAccurateAliases(String[] keyTypes, Principal[] issuers) {
    if (keyTypes == null || keyTypes.length == 0) {
      return null;
    }

    ArrayList<String> accurateAliases = new ArrayList<>();
    for (Map.Entry<String, KeyStore.PrivateKeyEntry> mapEntry : privateKeyHash.entrySet()) {

      Certificate[] certs = mapEntry.getValue().getCertificateChain();
      String alg = certs[0].getPublicKey().getAlgorithm();

      for (String keyType : keyTypes) {
        if (alg.equals(keyType)) {
          if (issuers != null && issuers.length != 0) {
            checkLoop:
            for (Certificate cert : certs) {
              if (cert instanceof X509Certificate) {
                X500Principal certificateIssuer = ((X509Certificate) cert).getIssuerX500Principal();
                for (Principal issuer : issuers) {
                  if (certificateIssuer.equals(issuer)) {
                    accurateAliases.add(mapEntry.getKey());
                    break checkLoop;
                  }
                }
              }
            }
          } else {
            accurateAliases.add(mapEntry.getKey());
          }
        }
      }
    }
    return accurateAliases;
  }
318318
public ServerFilter powerStates(PowerState... states) {
        allItemsNotNull(states, "Power states");

        predicate = predicate.and(combine(
            s -> s.getDetails().getPowerState(), in(map(states, PowerState::getCode))
        ));

        return this;
    }