g-Eclipse
Release 1.0.0

eu.geclipse.core.security
Interface ICertificateManager

All Superinterfaces:
ISecurityManager

public interface ICertificateManager
extends ISecurityManager

Central certificate manager definition.


Nested Class Summary
static class ICertificateManager.CertTrust
          Trust mode for the certificates managed by this manager.
 
Method Summary
 ICertificateHandle addCertificate(java.security.cert.X509Certificate c, ICertificateManager.CertTrust trust)
          Add the specified certificate with the specified trust mode to this manager.
 ICertificateHandle[] addCertificates(java.security.cert.X509Certificate[] list, ICertificateManager.CertTrust trust)
          Add the specified certificates with the specified trust mode to this manager.
 java.util.List<ICertificateHandle> getAllCertificates()
          Get all currently managed certificates.
 java.util.List<ICertificateHandle> getTrustedCertificates()
          Get all currently trusted certificates.
 java.util.List<ICertificateHandle> getUntrustedCertificates()
          Get all currently not trusted certificates.
 void removeCertificate(ICertificateHandle c)
          Remove the specified certificate from this manager.
 void removeCertificates(ICertificateHandle[] list)
          Remove the specified certificates from this manager.
 
Methods inherited from interface eu.geclipse.core.security.ISecurityManager
addListener, removeListener
 

Method Detail

addCertificate

ICertificateHandle addCertificate(java.security.cert.X509Certificate c,
                                  ICertificateManager.CertTrust trust)
                                  throws ProblemException
Add the specified certificate with the specified trust mode to this manager.

Parameters:
c - The certificate to be added.
trust - The trust mode of this certificate.
Returns:
The ICertificateHandle that is created to internally handle certificates.
Throws:
ProblemException - If the certificate could not be added due to an error.

addCertificates

ICertificateHandle[] addCertificates(java.security.cert.X509Certificate[] list,
                                     ICertificateManager.CertTrust trust)
                                     throws ProblemException
Add the specified certificates with the specified trust mode to this manager.

Parameters:
list - The certificates to be added.
trust - The trust mode of these certificates.
Returns:
The ICertificateHandles that are created to internally handle certificates.
Throws:
ProblemException - If the certificates could not be added due to an error.

getAllCertificates

java.util.List<ICertificateHandle> getAllCertificates()
Get all currently managed certificates.

Returns:
The ICertificateHandles of the currently managed certificates.

getTrustedCertificates

java.util.List<ICertificateHandle> getTrustedCertificates()
Get all currently trusted certificates.

Returns:
The ICertificateHandles of the currently trusted certificates.

getUntrustedCertificates

java.util.List<ICertificateHandle> getUntrustedCertificates()
Get all currently not trusted certificates.

Returns:
The ICertificateHandles of the currently not trusted certificates.

removeCertificate

void removeCertificate(ICertificateHandle c)
Remove the specified certificate from this manager.

Parameters:
c - The ICertificateHandle of the certificate to be removed.

removeCertificates

void removeCertificates(ICertificateHandle[] list)
Remove the specified certificates from this manager.

Parameters:
list - The ICertificateHandles of the certificates to be removed.

g-Eclipse
Release 1.0.0