Class CredentialMonitorHealthIndicator

java.lang.Object
se.swedenconnect.security.credential.spring.actuator.CredentialMonitorHealthIndicator
All Implemented Interfaces:
HealthContributor, HealthIndicator

public class CredentialMonitorHealthIndicator extends Object implements HealthIndicator
A HealthIndicator for monitoring credentials.

The indicator can either work in a passive mode where it listens to monitor events (use CredentialMonitorHealthIndicator()), or in "active" mode where the indicator sets up a CredentialMonitorBean (use CredentialMonitorHealthIndicator(List)).

Author:
Martin Lindström
  • Field Details

    • WARNING

      public static final Status WARNING
      Custom health status for warnings.
  • Constructor Details

    • CredentialMonitorHealthIndicator

      public CredentialMonitorHealthIndicator()
      Credential assuming that monitor events will be published.
    • CredentialMonitorHealthIndicator

      public CredentialMonitorHealthIndicator(@Nonnull List<ReloadablePkiCredential> credentials)
      Constructor setting up a monitor.
      Parameters:
      credentials - the credentials to monitor
  • Method Details