g-Eclipse
Release 1.0.0

eu.geclipse.core.security
Class GildaCertificateLoader

java.lang.Object
  extended by eu.geclipse.core.security.GildaCertificateLoader
All Implemented Interfaces:
ICertificateLoader

public class GildaCertificateLoader
extends java.lang.Object
implements ICertificateLoader

An ICertificateLoader used to import the CA certificate for the Gilda training infrastructure.


Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.geclipse.core.security.ICertificateLoader
ICertificateLoader.CertificateID
 
Constructor Summary
GildaCertificateLoader()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GildaCertificateLoader

public GildaCertificateLoader()
Method Detail

fetchCertificate

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

Specified by:
fetchCertificate in interface ICertificateLoader
Parameters:
id - The id of the certificate to be fetched.
monitor - A progress monitor.
Returns:
The certificate.
Throws:
ProblemException - If an error occurred.

listAvailableCertificates

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

Specified by:
listAvailableCertificates in interface ICertificateLoader
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