Package org.wildfly.security.http.oidc
Class NodesRegistrationManagement
- java.lang.Object
- 
- org.wildfly.security.http.oidc.NodesRegistrationManagement
 
- 
 public class NodesRegistrationManagement extends Object Used for clustering with Keycloak.- Author:
- Marek Posolda, Farah Juma
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classNodesRegistrationManagement.NodeRegistrationContext
 - 
Field SummaryFields Modifier and Type Field Description private ExecutorServiceexecutorprivate Map<String,NodesRegistrationManagement.NodeRegistrationContext>nodeRegistrations
 - 
Constructor SummaryConstructors Constructor Description NodesRegistrationManagement()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static StringgetHostName()private static StringgetHostNameImpl()private static InetAddressgetLocalHost()Methods returns InetAddress for localhostprivate booleanneedRefreshRegistration(String registrationUri, OidcClientConfiguration resolvedDeployment)protected voidsendRegistrationEvent(OidcClientConfiguration deployment)protected booleansendUnregistrationEvent(OidcClientConfiguration deployment)voidstop()Called during undeployment or server stop.voidtryRegister(OidcClientConfiguration resolvedDeployment)
 
- 
- 
- 
Field Detail- 
nodeRegistrationsprivate final Map<String,NodesRegistrationManagement.NodeRegistrationContext> nodeRegistrations 
 - 
executorprivate final ExecutorService executor 
 
- 
 - 
Method Detail- 
tryRegisterpublic void tryRegister(OidcClientConfiguration resolvedDeployment) 
 - 
needRefreshRegistrationprivate boolean needRefreshRegistration(String registrationUri, OidcClientConfiguration resolvedDeployment) 
 - 
stoppublic void stop() Called during undeployment or server stop. De-register from all previously registered deployments
 - 
sendRegistrationEventprotected void sendRegistrationEvent(OidcClientConfiguration deployment) 
 - 
sendUnregistrationEventprotected boolean sendUnregistrationEvent(OidcClientConfiguration deployment) 
 - 
getHostNameprivate static String getHostName() 
 - 
getHostNameImplprivate static String getHostNameImpl() 
 - 
getLocalHostprivate static InetAddress getLocalHost() throws UnknownHostException Methods returns InetAddress for localhost- Returns:
- InetAddress of the localhost
- Throws:
- UnknownHostException- if localhost could not be resolved
 
 
- 
 
-