Class NonFailFastValidator
java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.NonFailFastValidator
- All Implemented Interfaces:
Validator
Used to determine whether a Data Connector initialized properly and continues to be fit for use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whetherValidator.validate()
should throw or log errors.void
setThrowValidateError
(boolean what) Sets whetherValidator.validate()
should throw or log errors.void
validate()
Probe the data connector and conditionally fails if it is not valid and ready for use.
-
Field Details
-
embeddedValidator
Embedded validator to run.
-
-
Constructor Details
-
NonFailFastValidator
public NonFailFastValidator()Constructor. -
NonFailFastValidator
Constructor.- Parameters:
validator
- validator to run but trap exceptions from
-
-
Method Details
-
validate
Probe the data connector and conditionally fails if it is not valid and ready for use.- Specified by:
validate
in interfaceValidator
- Throws:
ValidationException
- thrown if validation fails andValidator.isThrowValidateError()
is true
-
setThrowValidateError
public void setThrowValidateError(boolean what) Sets whetherValidator.validate()
should throw or log errors.- Specified by:
setThrowValidateError
in interfaceValidator
- Parameters:
what
- whetherValidator.validate()
should throw or log errors
-
isThrowValidateError
public boolean isThrowValidateError()Returns whetherValidator.validate()
should throw or log errors.- Specified by:
isThrowValidateError
in interfaceValidator
- Returns:
- whether
Validator.validate()
should throw or log errors
-