Class CredentialMonitorHealthIndicator.MonitorStatus
java.lang.Object
se.swedenconnect.security.credential.spring.actuator.CredentialMonitorHealthIndicator.MonitorStatus
- Enclosing class:
CredentialMonitorHealthIndicator
Status for a monitored credential.
- Author:
- Martin Lindström
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forCredentialMonitorHealthIndicator.MonitorStatusobjects. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCredentialMonitorHealthIndicator.MonitorStatusobjects.booleanGets the credential name.Gets the reload error message.Gets the reload exception class name.Gets the reload result.Gets the overall health status for the credential.Gets the test error message.Gets the test exception class name.Gets the test result.inthashCode()voidsetCredentialName(String credentialName) Assigns the credential name.voidsetReloadError(String reloadError) Assigns the reload error message.voidsetReloadException(String reloadException) Assigns the reload exception class name.voidsetReloadResult(String reloadResult) Assigns the reload result.voidsetTestError(String testError) Assigns the test error message.voidsetTestException(String testException) Assigns the test exception class name.voidsetTestResult(String testResult) Assigns the test result.toString()
-
Field Details
-
OK
-
ERROR
-
-
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 nametestResult- the test resulttestError- the test error messagetestException- the test exception class namereloadResult- the reload resultreloadError- the reload error messagereloadException- the reload exception class name
-
-
Method Details
-
builder
Creates a builder forCredentialMonitorHealthIndicator.MonitorStatusobjects.- Returns:
- a builder
-
getCredentialName
-
setCredentialName
Assigns the credential name.- Parameters:
credentialName- the credential name
-
getTestResult
-
setTestResult
Assigns the test result.- Parameters:
testResult- the test result
-
getTestError
-
setTestError
Assigns the test error message.- Parameters:
testError- the test error message
-
getTestException
Gets the test exception class name.- Returns:
- the test exception class name
-
setTestException
Assigns the test exception class name.- Parameters:
testException- the test exception class name
-
getReloadResult
-
setReloadResult
Assigns the reload result.- Parameters:
reloadResult- the reload result
-
getReloadError
-
setReloadError
Assigns the reload error message.- Parameters:
reloadError- the reload error message
-
getReloadException
Gets the reload exception class name.- Returns:
- the reload exception class name
-
setReloadException
Assigns the reload exception class name.- Parameters:
reloadException- the reload exception class name
-
getStatus
-
equals
-
hashCode
-
toString
-