g-Eclipse
Release 1.0.0

eu.geclipse.core.security
Class GridPMACertificateLoader

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

public class GridPMACertificateLoader
extends java.lang.Object
implements ICertificateLoader

Certificate loader to import certificates from the grid policy management authorities such as EUGridPMA.


Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.geclipse.core.security.ICertificateLoader
ICertificateLoader.CertificateID
 
Constructor Summary
GridPMACertificateLoader()
           
 
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

GridPMACertificateLoader

public GridPMACertificateLoader()
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