public X509CertPathImpl(List certs) throws CertificateException {
  super("X.509");
  int size=certs.size();
  certificates=new ArrayList(size);
  for (int i=0; i < size; i++) {
    Object cert=certs.get(i);
    if (!(cert instanceof X509Certificate)) {
      throw new CertificateException("One of the provided certificates is not an X509 certificate");
    }
    certificates.add(cert);
  }
}

public X509CertPathImpl ( List certs ) throws CertificateException { super ( "X.509" ) ; int size = certs . size ( ) ; certificates = new ArrayList ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { Object cert = certs . get ( i ) ; if ( ! ( cert instanceof X509Certificate ) ) { throw new CertificateException ( "One of the provided certificates is not an X509 certificate" ) ; } certificates . add ( cert ) ; } }
creates an instance of x . 509 certification path over the specified list of certificates .
