Package org.keycloak.logging
Class NoopMappedDiagnosticContextProvider
java.lang.Object
org.keycloak.logging.NoopMappedDiagnosticContextProvider
- All Implemented Interfaces:
MappedDiagnosticContextProvider,org.keycloak.provider.Provider
public class NoopMappedDiagnosticContextProvider
extends Object
implements MappedDiagnosticContextProvider
-
Field Summary
Fields inherited from interface org.keycloak.logging.MappedDiagnosticContextProvider
MDC_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidupdate(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.ClientModel client) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.OrganizationModel organization) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.RealmModel realm) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.UserSessionModel userSession) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.sessions.AuthenticationSessionModel session) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
-
Constructor Details
-
NoopMappedDiagnosticContextProvider
public NoopMappedDiagnosticContextProvider()
-
-
Method Details
-
update
public void update(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.sessions.AuthenticationSessionModel session) Description copied from interface:MappedDiagnosticContextProviderUpdates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the authentication session property of the Keycloak context is updated.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullsession- the authentication session
-
update
public void update(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.RealmModel realm) Description copied from interface:MappedDiagnosticContextProviderUpdates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the realm property of the Keycloak context is updated.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullrealm- the realm
-
update
public void update(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.ClientModel client) Description copied from interface:MappedDiagnosticContextProviderUpdates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the client property of the Keycloak context is updated.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullclient- the client
-
update
public void update(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.OrganizationModel organization) Description copied from interface:MappedDiagnosticContextProviderUpdates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the organization property of the Keycloak context is updated.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullorganization- the organization
-
update
public void update(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.UserSessionModel userSession) Description copied from interface:MappedDiagnosticContextProviderUpdates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the user session property of the Keycloak context is updated.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nulluserSession- the user session
-
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-