code: public static X509Certificate[] loadCertificates(String locations) {
          TrustedCertificates tc = TrustedCertificates.load(locations);
          return (tc == null) ? null : tc.getCertificates();
      }
docs: Loads X509 certificates and signing policy files from specified
  locations. The locations can be either files or
  directories. The directories will be automatically traversed
  and all files in the form of <i>hashcode.number</i> and will be
  loaded automatically as trusted certificates. An attempt will
  be made to load signing policy for the CA associated with
  that hashcode from &lt;hashcode&gt;.signing_policy. If policy file is
  not found, no error will be thrown, only path validation code
  enforces the signing policy requirement.
  
  @param locations a list of certificate files/directories to load
  the certificates from. The locations are comma
  separated.
  
  @return <code>java.security.cert.X509Certificate</code> an array
  of loaded certificates