code: public static GSIConstants.CertificateType getCertificateType(X509Certificate cert,
  					 TrustedCertificates trustedCerts)
  	throws CertificateException {
          try {
              return getCertificateType(cert, TrustedCertificatesUtil.createCertStore(trustedCerts));
  	} catch (Exception e) {
  	    throw new CertificateException("", e);
  	}
      }
docs: Returns certificate type of the given certificate.
  Please see {@link #getCertificateType(TBSCertificateStructure,
  TrustedCertificates) getCertificateType} for details for
  determining the certificate type.
  
  @param cert the certificate to get the type of.
  @param trustedCerts the trusted certificates to double check the
  {@link GSIConstants#EEC GSIConstants.EEC}
  certificate against.
  @return the certificate type as determined by
  {@link #getCertificateType(TBSCertificateStructure,
  TrustedCertificates) getCertificateType}.
  @exception CertificateException if something goes wrong.
  @deprecated