Class SpringCredentialConfigurationProperties.MonitoringProperties
java.lang.Object
se.swedenconnect.security.credential.spring.autoconfigure.SpringCredentialConfigurationProperties.MonitoringProperties
- Enclosing class:
SpringCredentialConfigurationProperties
For monitoring.
- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the interval between tests of credentials.booleanTells whether credential monitoring is enabled.booleanTells whether a HealthEndpoint for monitoring should be set up.voidsetEnabled(boolean enabled) Assigns whether credential monitoring is enabled.voidsetHealthEndpointEnabled(boolean healthEndpointEnabled) Assigns whether a HealthEndpoint for monitoring should be set up.voidsetTestInterval(Duration testInterval) Assigns the interval between tests of credentials.
-
Constructor Details
-
MonitoringProperties
public MonitoringProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Tells whether credential monitoring is enabled.- Returns:
- whether credential monitoring is enabled
-
setEnabled
public void setEnabled(boolean enabled) Assigns whether credential monitoring is enabled.- Parameters:
enabled- whether credential monitoring is enabled
-
getTestInterval
Gets the interval between tests of credentials.- Returns:
- the interval between tests of credentials
-
setTestInterval
Assigns the interval between tests of credentials.- Parameters:
testInterval- the interval between tests of credentials
-
isHealthEndpointEnabled
public boolean isHealthEndpointEnabled()Tells whether a HealthEndpoint for monitoring should be set up.- Returns:
- whether a HealthEndpoint for monitoring should be set up
-
setHealthEndpointEnabled
public void setHealthEndpointEnabled(boolean healthEndpointEnabled) Assigns whether a HealthEndpoint for monitoring should be set up.- Parameters:
healthEndpointEnabled- whether a HealthEndpoint for monitoring should be set up
-