Package org.xipki.ca.server
Class CaServerConf
- java.lang.Object
-
- org.xipki.util.ValidableConf
-
- org.xipki.ca.server.CaServerConf
-
public class CaServerConf extends org.xipki.util.ValidableConfCA server configuration.- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaServerConf.CtLogConfstatic classCaServerConf.RemoteMgmtstatic classCaServerConf.SslContext
-
Constructor Summary
Constructors Constructor Description CaServerConf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xipki.audit.Audits.AuditConfgetAudit()List<String>getCaConfFiles()List<String>getCertprofileFactories()CaServerConf.CtLogConfgetCtLog()List<org.xipki.datasource.DataSourceConf>getDatasources()List<String>getKeypairGeneratorFactories()CaServerConf.RemoteMgmtgetRemoteMgmt()StringgetReverseProxyMode()org.xipki.security.Securities.SecurityConfgetSecurity()intgetShardId()CaServerConf.SslContextgetSslContext(String name)org.xipki.util.http.SslContextConfgetSslContextConf(String name)List<CaServerConf.SslContext>getSslContexts()voidinitSsl()booleanisLogReqResp()booleanisMaster()booleanisNoLock()booleanisNoRA()static CaServerConfreadConfFromFile(String fileName)voidsetAudit(org.xipki.audit.Audits.AuditConf audit)voidsetCaConfFiles(List<String> caConfFiles)voidsetCertprofileFactories(List<String> certprofileFactories)voidsetCtLog(CaServerConf.CtLogConf ctLog)voidsetDatasources(List<org.xipki.datasource.DataSourceConf> datasources)voidsetKeypairGeneratorFactories(List<String> keypairGeneratorFactories)voidsetLogReqResp(boolean logReqResp)voidsetMaster(boolean master)voidsetNoLock(boolean noLock)voidsetNoRA(boolean noRA)voidsetRemoteMgmt(CaServerConf.RemoteMgmt remoteMgmt)voidsetReverseProxyMode(String reverseProxyMode)voidsetSecurity(org.xipki.security.Securities.SecurityConf security)voidsetShardId(int shardId)voidsetSslContexts(List<CaServerConf.SslContext> sslContexts)voidvalidate()
-
-
-
Method Detail
-
readConfFromFile
public static CaServerConf readConfFromFile(String fileName) throws IOException, org.xipki.util.exception.InvalidConfException
- Throws:
IOExceptionorg.xipki.util.exception.InvalidConfException
-
isMaster
public boolean isMaster()
-
setMaster
public void setMaster(boolean master)
-
isNoLock
public boolean isNoLock()
-
setNoLock
public void setNoLock(boolean noLock)
-
isNoRA
public boolean isNoRA()
-
setNoRA
public void setNoRA(boolean noRA)
-
isLogReqResp
public boolean isLogReqResp()
-
setLogReqResp
public void setLogReqResp(boolean logReqResp)
-
getReverseProxyMode
public String getReverseProxyMode()
-
setReverseProxyMode
public void setReverseProxyMode(String reverseProxyMode)
-
getShardId
public int getShardId()
-
setShardId
public void setShardId(int shardId)
-
getDatasources
public List<org.xipki.datasource.DataSourceConf> getDatasources()
-
setDatasources
public void setDatasources(List<org.xipki.datasource.DataSourceConf> datasources)
-
getSslContexts
public List<CaServerConf.SslContext> getSslContexts()
-
setSslContexts
public void setSslContexts(List<CaServerConf.SslContext> sslContexts)
-
getSslContext
public CaServerConf.SslContext getSslContext(String name)
-
getAudit
public org.xipki.audit.Audits.AuditConf getAudit()
-
setAudit
public void setAudit(org.xipki.audit.Audits.AuditConf audit)
-
getSecurity
public org.xipki.security.Securities.SecurityConf getSecurity()
-
setSecurity
public void setSecurity(org.xipki.security.Securities.SecurityConf security)
-
getRemoteMgmt
public CaServerConf.RemoteMgmt getRemoteMgmt()
-
setRemoteMgmt
public void setRemoteMgmt(CaServerConf.RemoteMgmt remoteMgmt)
-
setKeypairGeneratorFactories
public void setKeypairGeneratorFactories(List<String> keypairGeneratorFactories)
-
getCtLog
public CaServerConf.CtLogConf getCtLog()
-
setCtLog
public void setCtLog(CaServerConf.CtLogConf ctLog)
-
initSsl
public void initSsl()
-
getSslContextConf
public org.xipki.util.http.SslContextConf getSslContextConf(String name)
-
validate
public void validate() throws org.xipki.util.exception.InvalidConfException- Specified by:
validatein classorg.xipki.util.ValidableConf- Throws:
org.xipki.util.exception.InvalidConfException
-
-