Class NoopMappedDiagnosticContextProvider

java.lang.Object
org.keycloak.logging.NoopMappedDiagnosticContextProvider
All Implemented Interfaces:
MappedDiagnosticContextProvider, Provider

public class NoopMappedDiagnosticContextProvider extends Object implements MappedDiagnosticContextProvider
  • Constructor Details

    • NoopMappedDiagnosticContextProvider

      public NoopMappedDiagnosticContextProvider()
  • Method Details

    • update

      public void update(KeycloakContext keycloakContext, AuthenticationSessionModel session)
      Description copied from interface: MappedDiagnosticContextProvider
      Updates 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:
      update in interface MappedDiagnosticContextProvider
      Parameters:
      keycloakContext - the current Keycloak context, never null
      session - the authentication session
    • update

      public void update(KeycloakContext keycloakContext, RealmModel realm)
      Description copied from interface: MappedDiagnosticContextProvider
      Updates 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:
      update in interface MappedDiagnosticContextProvider
      Parameters:
      keycloakContext - the current Keycloak context, never null
      realm - the realm
    • update

      public void update(KeycloakContext keycloakContext, ClientModel client)
      Description copied from interface: MappedDiagnosticContextProvider
      Updates 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:
      update in interface MappedDiagnosticContextProvider
      Parameters:
      keycloakContext - the current Keycloak context, never null
      client - the client
    • update

      public void update(KeycloakContext keycloakContext, OrganizationModel organization)
      Description copied from interface: MappedDiagnosticContextProvider
      Updates 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:
      update in interface MappedDiagnosticContextProvider
      Parameters:
      keycloakContext - the current Keycloak context, never null
      organization - the organization
    • update

      public void update(KeycloakContext keycloakContext, UserSessionModel userSession)
      Description copied from interface: MappedDiagnosticContextProvider
      Updates 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:
      update in interface MappedDiagnosticContextProvider
      Parameters:
      keycloakContext - the current Keycloak context, never null
      userSession - the user session
    • close

      public void close()
      Specified by:
      close in interface Provider