Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geclipse-dev] CA certificates download

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

I am updating the part of code that uses g-eclipse right now.

The download of the authority certificates was done that way:

	private void loadCECertFromWeb() throws InternalProcessingError {
		ICaCertificateLoader loader;
		ICaCertificate[] certs = null;
		try {
			loader =  new EUGridPMACertificateLoader();
			if ( loader != null ) {
				URI[] uris = loader.getPredefinedRemoteLocations();
				if ( ( uris != null ) && ( uris.length > 0 ) ) {
					String[] certnames = loader.getCertificateList( uris[ 0 ], null );
					if ( certnames != null ) {
						certs = new ICaCertificate[ certnames.length ];
						for ( int i = 0 ; i < certnames.length ; i++ ) {
							certs[ i ] = loader.getCertificate( uris[ 0 ], certnames[ i ], null );
						}
					}
				}
			}
			CaCertManager.getManager().addCertificates(certs);
		} catch (CoreException e) {
			throw new InternalProcessingError(e);
		} 

	}


Obviously,things have changed. May you point me at some code that download the authority certificates in the new way of doing it?

Romain

PS: Congratulation for your slashdoting on wednesday: http://tech.slashdot.org/article.pl?sid=08/11/19/2335219  
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkmwXwACgkQbUN+hKKXqgtIFwCfaBfo963qr3sFVFmOn0FpIZMA
SWsAoLrdGGprasvrgR04S+C/H+WPbrki
=eC7x
-----END PGP SIGNATURE-----


Back to the top