Class FileJGroupsCertificateProvider
- All Implemented Interfaces:
Provider
,JGroupsCertificateProvider
JGroupsCertificateProvider
implementation that reads the key and trust stores from a file.
This implementation periodically inspects the file for changes. If the files are modified, the new key and trust stores are reloaded and used.
-
Field Summary
Fields inherited from interface org.keycloak.spi.infinispan.JGroupsCertificateProvider
DISABLED
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String keyStoreFile, String keyStorePassword, String trustStoreFile, String trustStorePassword) boolean
Returns a managedKeyManager
.Returns a managedTrustManager
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.spi.infinispan.JGroupsCertificateProvider
close, nextRotation, reloadCertificate, rotateCertificate, supportRotateAndReload
-
Method Details
-
create
public static FileJGroupsCertificateProvider create(String keyStoreFile, String keyStorePassword, String trustStoreFile, String trustStorePassword) -
keyManager
Description copied from interface:JGroupsCertificateProvider
Returns a managedKeyManager
.If
JGroupsCertificateProvider.supportRotateAndReload()
returnstrue
, the instance returned must be updated with the new certificate whenJGroupsCertificateProvider.reloadCertificate()
. This method is invoked only once at boot time.This method must be implemented when
JGroupsCertificateProvider.isEnabled()
returnstrue
.- Specified by:
keyManager
in interfaceJGroupsCertificateProvider
- Returns:
- The
KeyManager
to use by theSSLContext
.
-
trustManager
Description copied from interface:JGroupsCertificateProvider
Returns a managedTrustManager
.If
JGroupsCertificateProvider.supportRotateAndReload()
returnstrue
, the instance returned must be updated with the new certificate whenJGroupsCertificateProvider.reloadCertificate()
. This method is invoked only once at boot time.This method must be implemented when
JGroupsCertificateProvider.isEnabled()
returnstrue
.- Specified by:
trustManager
in interfaceJGroupsCertificateProvider
- Returns:
- The
TrustManager
to use by theSSLContext
.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceJGroupsCertificateProvider
- Returns:
true
if TLS is enabled for JGroups communication.
-