org.eclipse.higgins.keystore.common.impl
Class KeyStoreServiceImp

java.lang.Object
  extended byorg.eclipse.higgins.keystore.common.KeyStoreService
      extended byorg.eclipse.higgins.keystore.common.impl.KeyStoreServiceImp
All Implemented Interfaces:
org.eclipse.higgins.keystore.IKeyStoreService, org.eclipse.higgins.registry.IServiceProvider

public final class KeyStoreServiceImp
extends KeyStoreService


Constructor Summary
KeyStoreServiceImp()
           
 
Method Summary
 CertStore addToCertStore(CallbackHandler handler, CertStore certStore)
           
 CertStore addToCertStore(CallbackHandler handler, X509Certificate[] certificates)
           
 CertStore deleteFromCertStore(CallbackHandler handler, CertStore certStore)
           
 CertStore deleteFromCertStore(CallbackHandler handler, X509Certificate[] certificates)
           
 boolean extendendValidationCertificateChain(CallbackHandler handler, X509Certificate[] certChain, URI uri)
           
 boolean extendendValidationCertificateChain(CallbackHandler handler, X509Certificate[] certChain, URI uri, CertStore certStore)
           
 X509Certificate[] getCertChainFromStore(String id)
           
 CertStore getCertStore(CallbackHandler handler)
           
 org.eclipse.higgins.registry.IConfiguration getConfiguration()
           
 CertStore getDefaultTrustCertStore(CallbackHandler handler)
           
 String getID()
           
 X509Certificate[] getNormalizedCertificateChain(CallbackHandler handler, X509Certificate[] certPath, CertStore certStore)
           
 X509Certificate[] getValidateCertificateChain(CallbackHandler handler, X509Certificate[] certPath, URI uri)
           
 X509Certificate[] getValidateCertificateChain(CallbackHandler handler, X509Certificate[] certPath, URI uri, CertStore certStore)
           
 void putCertChain(X509Certificate[] certificatePath)
           
 void setID(String id)
           
 void updateCertChain(X509Certificate[] certificatePath)
           
 boolean validateCertificateChain(CallbackHandler handler, X509Certificate[] certChain, URI uri)
           
 boolean validateCertificateChain(CallbackHandler handler, X509Certificate[] certChain, URI uri, CertStore certStore)
           
 
Methods inherited from class org.eclipse.higgins.keystore.common.KeyStoreService
findLeafFromCertificates, getCertificatesFromByteArray, joinCertStore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStoreServiceImp

public KeyStoreServiceImp()
Method Detail

addToCertStore

public CertStore addToCertStore(CallbackHandler handler,
                                CertStore certStore)
                         throws CertificateException,
                                CertStoreException
Throws:
CertificateException
CertStoreException

addToCertStore

public CertStore addToCertStore(CallbackHandler handler,
                                X509Certificate[] certificates)
                         throws CertificateException,
                                CertStoreException
Throws:
CertificateException
CertStoreException

deleteFromCertStore

public CertStore deleteFromCertStore(CallbackHandler handler,
                                     CertStore certStore)
                              throws CertificateException,
                                     CertStoreException
Throws:
CertificateException
CertStoreException

deleteFromCertStore

public CertStore deleteFromCertStore(CallbackHandler handler,
                                     X509Certificate[] certificates)
                              throws CertificateException,
                                     CertStoreException
Throws:
CertificateException
CertStoreException

getCertStore

public CertStore getCertStore(CallbackHandler handler)
                       throws CertificateException,
                              CertStoreException
Throws:
CertificateException
CertStoreException

getDefaultTrustCertStore

public CertStore getDefaultTrustCertStore(CallbackHandler handler)

getConfiguration

public org.eclipse.higgins.registry.IConfiguration getConfiguration()

getID

public String getID()

setID

public void setID(String id)
           throws Exception
Throws:
Exception

getValidateCertificateChain

public X509Certificate[] getValidateCertificateChain(CallbackHandler handler,
                                                     X509Certificate[] certPath,
                                                     URI uri)
                                              throws CertificateException,
                                                     CertStoreException
Throws:
CertificateException
CertStoreException

getValidateCertificateChain

public X509Certificate[] getValidateCertificateChain(CallbackHandler handler,
                                                     X509Certificate[] certPath,
                                                     URI uri,
                                                     CertStore certStore)
                                              throws CertificateException,
                                                     CertStoreException
Specified by:
getValidateCertificateChain in interface org.eclipse.higgins.keystore.IKeyStoreService
Overrides:
getValidateCertificateChain in class KeyStoreService
Throws:
CertificateException
CertStoreException

getNormalizedCertificateChain

public X509Certificate[] getNormalizedCertificateChain(CallbackHandler handler,
                                                       X509Certificate[] certPath,
                                                       CertStore certStore)
                                                throws CertificateException,
                                                       CertStoreException
Throws:
CertificateException
CertStoreException

extendendValidationCertificateChain

public boolean extendendValidationCertificateChain(CallbackHandler handler,
                                                   X509Certificate[] certChain,
                                                   URI uri)

extendendValidationCertificateChain

public boolean extendendValidationCertificateChain(CallbackHandler handler,
                                                   X509Certificate[] certChain,
                                                   URI uri,
                                                   CertStore certStore)
Specified by:
extendendValidationCertificateChain in interface org.eclipse.higgins.keystore.IKeyStoreService
Overrides:
extendendValidationCertificateChain in class KeyStoreService

validateCertificateChain

public boolean validateCertificateChain(CallbackHandler handler,
                                        X509Certificate[] certChain,
                                        URI uri)

validateCertificateChain

public boolean validateCertificateChain(CallbackHandler handler,
                                        X509Certificate[] certChain,
                                        URI uri,
                                        CertStore certStore)
Specified by:
validateCertificateChain in interface org.eclipse.higgins.keystore.IKeyStoreService
Overrides:
validateCertificateChain in class KeyStoreService

getCertChainFromStore

public X509Certificate[] getCertChainFromStore(String id)

putCertChain

public void putCertChain(X509Certificate[] certificatePath)
                  throws CertStoreException
Throws:
CertStoreException

updateCertChain

public void updateCertChain(X509Certificate[] certificatePath)
                     throws CertStoreException
Throws:
CertStoreException