Class FailedCredentialTestEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
se.swedenconnect.security.credential.spring.monitoring.events.AbstractCredentialMonitoringEvent
se.swedenconnect.security.credential.spring.monitoring.events.FailedCredentialTestEvent
- All Implemented Interfaces:
Serializable
Event that is signalled when a credential has been tested and the test failed.
- Author:
- Martin Lindström
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFailedCredentialTestEvent
(String credentialName, String error, String exception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Gets the error message for the test.Gets the name of the exception that led to the error.Methods inherited from class se.swedenconnect.security.credential.spring.monitoring.events.AbstractCredentialMonitoringEvent
getCredentialName
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
FailedCredentialTestEvent
public FailedCredentialTestEvent(@Nonnull String credentialName, @Nonnull String error, @Nullable String exception) Constructor.- Parameters:
credentialName
- the name of the credential that was testederror
- the error messageexception
- the name of the exception that led to the error
-
-
Method Details
-
getError
Gets the error message for the test.- Returns:
- the error message for the test
-
getException
Gets the name of the exception that led to the error.- Returns:
- the name of the exception that led to the error, or
null
-