Class CATLSContextService
java.lang.Object
com.io7m.cardant.server.service.tls.CATLSContextService
- All Implemented Interfaces:
CATLSContextServiceType, com.io7m.repetoir.core.RPServiceType
The TLS context service.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String user, CATLSStoreConfiguration keyStoreConfiguration, CATLSStoreConfiguration trustStoreConfiguration) Create a TLS context.static CATLSContextServiceTypecreateService(com.io7m.repetoir.core.RPServiceDirectoryType services) voidreload()Reload all TLS contexts.toString()
-
Method Details
-
toString
-
createService
public static CATLSContextServiceType createService(com.io7m.repetoir.core.RPServiceDirectoryType services) - Parameters:
services- The service directory- Returns:
- A new TLS context service
-
create
public CATLSContext create(String user, CATLSStoreConfiguration keyStoreConfiguration, CATLSStoreConfiguration trustStoreConfiguration) throws CAException Description copied from interface:CATLSContextServiceTypeCreate a TLS context.- Specified by:
createin interfaceCATLSContextServiceType- Parameters:
user- The user of this context (such as "HealthService", "AdminService", etc)keyStoreConfiguration- The keystore configurationtrustStoreConfiguration- The truststore configuration- Returns:
- A TLS context
- Throws:
CAException- On errors
-
reload
public void reload()Description copied from interface:CATLSContextServiceTypeReload all TLS contexts. Primarily used to reload short-lived certificates issued using the ACME protocol.- Specified by:
reloadin interfaceCATLSContextServiceType
-
description
- Specified by:
descriptionin interfacecom.io7m.repetoir.core.RPServiceType
-