Class CredentialMonitorHealthIndicator.MonitorStatus

java.lang.Object
se.swedenconnect.security.credential.spring.actuator.CredentialMonitorHealthIndicator.MonitorStatus
Enclosing class:
CredentialMonitorHealthIndicator

public static class CredentialMonitorHealthIndicator.MonitorStatus extends Object
Status for a monitored credential.
Author:
Martin Lindström
  • Field Details

  • Constructor Details

    • MonitorStatus

      public MonitorStatus()
      Default constructor.
    • MonitorStatus

      public MonitorStatus(String credentialName, String testResult, String testError, String testException, String reloadResult, String reloadError, String reloadException)
      Constructor assigning all fields.
      Parameters:
      credentialName - the credential name
      testResult - the test result
      testError - the test error message
      testException - the test exception class name
      reloadResult - the reload result
      reloadError - the reload error message
      reloadException - the reload exception class name
  • Method Details

    • builder

      Creates a builder for CredentialMonitorHealthIndicator.MonitorStatus objects.
      Returns:
      a builder
    • getCredentialName

      public String getCredentialName()
      Gets the credential name.
      Returns:
      the credential name
    • setCredentialName

      public void setCredentialName(String credentialName)
      Assigns the credential name.
      Parameters:
      credentialName - the credential name
    • getTestResult

      public String getTestResult()
      Gets the test result.
      Returns:
      the test result
    • setTestResult

      public void setTestResult(String testResult)
      Assigns the test result.
      Parameters:
      testResult - the test result
    • getTestError

      public String getTestError()
      Gets the test error message.
      Returns:
      the test error message
    • setTestError

      public void setTestError(String testError)
      Assigns the test error message.
      Parameters:
      testError - the test error message
    • getTestException

      public String getTestException()
      Gets the test exception class name.
      Returns:
      the test exception class name
    • setTestException

      public void setTestException(String testException)
      Assigns the test exception class name.
      Parameters:
      testException - the test exception class name
    • getReloadResult

      public String getReloadResult()
      Gets the reload result.
      Returns:
      the reload result
    • setReloadResult

      public void setReloadResult(String reloadResult)
      Assigns the reload result.
      Parameters:
      reloadResult - the reload result
    • getReloadError

      public String getReloadError()
      Gets the reload error message.
      Returns:
      the reload error message
    • setReloadError

      public void setReloadError(String reloadError)
      Assigns the reload error message.
      Parameters:
      reloadError - the reload error message
    • getReloadException

      public String getReloadException()
      Gets the reload exception class name.
      Returns:
      the reload exception class name
    • setReloadException

      public void setReloadException(String reloadException)
      Assigns the reload exception class name.
      Parameters:
      reloadException - the reload exception class name
    • getStatus

      public Status getStatus()
      Gets the overall health status for the credential.
      Returns:
      the status
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object