public class RootServiceImpl extends DefaultComponent implements RootService
Modifier and Type | Field and Description |
---|---|
protected List<RootDescriptor> |
config |
lastModified
Constructor and Description |
---|
RootServiceImpl() |
deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected List<RootDescriptor> config
public RootServiceImpl()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic KeyStore getRootKeyStore()
getRootKeyStore
in interface RootService
public void setRootKeyStore(KeyStore rootKeyStore)
setRootKeyStore
in interface RootService
public String getRootKeystoreFilePath()
getRootKeystoreFilePath
in interface RootService
public void setRootKeystoreFilePath(String rootKeystoreFilePath)
setRootKeystoreFilePath
in interface RootService
public String getRootKeystorePassword()
getRootKeystorePassword
in interface RootService
public void setRootKeystorePassword(String rootKeystorePassword)
setRootKeystorePassword
in interface RootService
public String getRootCertificateAlias()
getRootCertificateAlias
in interface RootService
public void setRootCertificateAlias(String rootCertificateAlias)
setRootCertificateAlias
in interface RootService
public String getRootKeyAlias()
getRootKeyAlias
in interface RootService
public void setRootKeyAlias(String rootKeyAlias)
setRootKeyAlias
in interface RootService
public String getRootKeyPassword()
getRootKeyPassword
in interface RootService
public void setRootKeyPassword(String rootKeyPassword)
setRootKeyPassword
in interface RootService
public boolean isRootSetup()
isRootSetup
in interface RootService
protected void initializeRoot() throws CertException
CertException
public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException
CertException
public InputStream getRootKeystoreIS() throws CertException
getRootKeystoreIS
in interface RootService
CertException
public byte[] getRootPublicCertificate() throws CertException
getRootPublicCertificate
in interface RootService
CertException
protected X509Certificate getCertificate(KeyStore ks, String certificateAlias) throws CertException
CertException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws CertException
registerContribution
in class DefaultComponent
CertException
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2018 Nuxeo. All rights reserved.