g-Eclipse
Release 1.0.0

eu.geclipse.core.security
Interface ICertificateLoader

All Known Implementing Classes:
GildaCertificateLoader, GridPMACertificateLoader

public interface ICertificateLoader

Defines the functionality to import certificates from a remote or local repository. See also the eu.geclipse.core.certificateLoader extension point.


Nested Class Summary
static class ICertificateLoader.CertificateID
          A helper class identifying a certificate.
 
Method Summary
 java.security.cert.X509Certificate fetchCertificate(ICertificateLoader.CertificateID id, IProgressMonitor monitor)
          Fetch the certificates from the specified certificate IDs.
 ICertificateLoader.CertificateID[] listAvailableCertificates(java.net.URI uri, IProgressMonitor monitor)
          List the certificates that are available from the specified repository.
 

Method Detail

fetchCertificate

java.security.cert.X509Certificate fetchCertificate(ICertificateLoader.CertificateID id,
                                                    IProgressMonitor monitor)
                                                    throws ProblemException
Fetch the certificates from the specified certificate IDs.

Parameters:
id - The id of the certificate to be fetched.
monitor - A progress monitor.
Returns:
The certificate.
Throws:
ProblemException - If an error occurred.

listAvailableCertificates

ICertificateLoader.CertificateID[] listAvailableCertificates(java.net.URI uri,
                                                             IProgressMonitor monitor)
                                                             throws ProblemException
List the certificates that are available from the specified repository.

Parameters:
uri - The repository to be listed.
monitor - A progress monitor.
Returns:
A list of available certificates represented by their ICertificateLoader.CertificateIDs.
Throws:
ProblemException - If a problem occurs.

g-Eclipse
Release 1.0.0