Class NoCardValidator
java.lang.Object
org.jpos.core.NoCardValidator
- All Implemented Interfaces:
CardValidator
A card validator implementation that performs no validation.
This validator is useful in scenarios where card validation should be completely bypassed, such as testing environments or when using external validation services.
Usage example:
SelectDestination participant = new SelectDestination();
Configuration cfg = new SimpleConfiguration();
cfg.put("ignore-card-validations", "true");
participant.setConfiguration(cfg);
- Since:
- 3.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoCardValidator
public NoCardValidator()Default constructor; no instance state to initialise.
-
-
Method Details
-
validate
Description copied from interface:CardValidatorValidates the given card.- Specified by:
validatein interfaceCardValidator- Parameters:
card- the card to validate- Throws:
InvalidCardException- if the card is invalid
-