Class CredentialMonitoringCallbacks

java.lang.Object
se.swedenconnect.security.credential.spring.monitoring.CredentialMonitoringCallbacks

public class CredentialMonitoringCallbacks extends Object
Callbacks for credential monitoring signalling application events.
Author:
Martin Lindström
  • Constructor Details

    • CredentialMonitoringCallbacks

      public CredentialMonitoringCallbacks(ApplicationEventPublisher eventPublisher)
      Constructor.
      Parameters:
      eventPublisher - the system event publisher
  • Method Details

    • getTestSuccessCallback

      @Nonnull public Consumer<ReloadablePkiCredential> getTestSuccessCallback()
      Gets a callback for successful credential tests.
      Returns:
      a callback for successful credential tests
    • getTestFailureCallback

      @Nonnull public BiFunction<ReloadablePkiCredential,Exception,Boolean> getTestFailureCallback()
      Gets a callback for failed credential tests.
      Returns:
      a callback for failed credential tests
    • getReloadSuccessCallback

      @Nonnull public Consumer<ReloadablePkiCredential> getReloadSuccessCallback()
      Gets a callback for successful credential reloads.
      Returns:
      a callback for successful credential reloads
    • getReloadFailureCallback

      @Nonnull public BiConsumer<ReloadablePkiCredential,Exception> getReloadFailureCallback()
      Gets a callback for failed credential reloads.
      Returns:
      a callback for failed credential reloads