Class RootServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.signature.core.pki.RootServiceImpl
-
- All Implemented Interfaces:
RootService
,Adaptable
,Component
,Extensible
,TimestampedService
public class RootServiceImpl extends DefaultComponent implements RootService
- Author:
- Wojciech Sulejman
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RootDescriptor>
config
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description RootServiceImpl()
-
Method Summary
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
config
protected List<RootDescriptor> config
-
-
Method Detail
-
activate
public void activate(ComponentContext context)
Description copied from interface:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
getRootKeyStore
public KeyStore getRootKeyStore()
- Specified by:
getRootKeyStore
in interfaceRootService
-
setRootKeyStore
public void setRootKeyStore(KeyStore rootKeyStore)
- Specified by:
setRootKeyStore
in interfaceRootService
-
getRootKeystoreFilePath
public String getRootKeystoreFilePath()
- Specified by:
getRootKeystoreFilePath
in interfaceRootService
-
setRootKeystoreFilePath
public void setRootKeystoreFilePath(String rootKeystoreFilePath)
- Specified by:
setRootKeystoreFilePath
in interfaceRootService
-
getRootKeystorePassword
public String getRootKeystorePassword()
- Specified by:
getRootKeystorePassword
in interfaceRootService
-
setRootKeystorePassword
public void setRootKeystorePassword(String rootKeystorePassword)
- Specified by:
setRootKeystorePassword
in interfaceRootService
-
getRootCertificateAlias
public String getRootCertificateAlias()
- Specified by:
getRootCertificateAlias
in interfaceRootService
-
setRootCertificateAlias
public void setRootCertificateAlias(String rootCertificateAlias)
- Specified by:
setRootCertificateAlias
in interfaceRootService
-
getRootKeyAlias
public String getRootKeyAlias()
- Specified by:
getRootKeyAlias
in interfaceRootService
-
setRootKeyAlias
public void setRootKeyAlias(String rootKeyAlias)
- Specified by:
setRootKeyAlias
in interfaceRootService
-
getRootKeyPassword
public String getRootKeyPassword()
- Specified by:
getRootKeyPassword
in interfaceRootService
-
setRootKeyPassword
public void setRootKeyPassword(String rootKeyPassword)
- Specified by:
setRootKeyPassword
in interfaceRootService
-
isRootSetup
public boolean isRootSetup()
- Specified by:
isRootSetup
in interfaceRootService
-
initializeRoot
protected void initializeRoot() throws CertException
- Throws:
CertException
-
getKeyStore
public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException
- Throws:
CertException
-
getRootKeystoreIS
public InputStream getRootKeystoreIS() throws CertException
- Specified by:
getRootKeystoreIS
in interfaceRootService
- Throws:
CertException
-
getRootPublicCertificate
public byte[] getRootPublicCertificate() throws CertException
Public certificate for the CA root. Encoded as an ASN.1 DER ("anybody there?") formatted byte array.- Specified by:
getRootPublicCertificate
in interfaceRootService
- Throws:
CertException
-
getCertificate
protected X509Certificate getCertificate(KeyStore ks, String certificateAlias) throws CertException
- Throws:
CertException
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws CertException
- Overrides:
registerContribution
in classDefaultComponent
- Throws:
CertException
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
-