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) booleanReturns a managedKeyManager.Returns a managedTrustManager.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JGroupsCertificateProviderReturns 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:
keyManagerin interfaceJGroupsCertificateProvider- Returns:
- The
KeyManagerto use by theSSLContext.
-
trustManager
Description copied from interface:JGroupsCertificateProviderReturns 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:
trustManagerin interfaceJGroupsCertificateProvider- Returns:
- The
TrustManagerto use by theSSLContext.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceJGroupsCertificateProvider- Returns:
trueif TLS is enabled for JGroups communication.
-