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