question: 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 ) ; } }
target:  Creates an instance of X.509 Certification Path over the specified list of certificates.