public class RootServiceImpl extends DefaultComponent implements RootService
Constructor and Description |
---|
RootServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
KeyStore |
getKeyStore(InputStream keystoreIS,
String password) |
String |
getRootCertificateAlias() |
String |
getRootKeyAlias() |
String |
getRootKeyPassword() |
KeyStore |
getRootKeyStore() |
String |
getRootKeystoreFilePath() |
InputStream |
getRootKeystoreIS() |
String |
getRootKeystorePassword() |
byte[] |
getRootPublicCertificate()
Public certificate for the CA root.
|
boolean |
isRootSetup() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
setRootCertificateAlias(String rootCertificateAlias) |
void |
setRootKeyAlias(String rootKeyAlias) |
void |
setRootKeyPassword(String rootKeyPassword) |
void |
setRootKeyStore(KeyStore rootKeyStore) |
void |
setRootKeystoreFilePath(String rootKeystoreFilePath) |
void |
setRootKeystorePassword(String rootKeystorePassword) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
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
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
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 © 2015 Nuxeo SA. All rights reserved.