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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    update(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.
    void
    update(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.
    void
    update(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.
    void
    update(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.
    void
    update(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: 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(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.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(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.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(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.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(org.keycloak.models.KeycloakContext keycloakContext, org.keycloak.models.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 org.keycloak.provider.Provider