Class CreateConsentRequestValidator
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.validator.ais.consent.CreateConsentRequestValidator
-
- All Implemented Interfaces:
BusinessValidator<CreateConsentRequestObject>
@Component public class CreateConsentRequestValidator extends Object implements BusinessValidator<CreateConsentRequestObject>
Validator to be used for validating create consent request according to some business rules
-
-
Constructor Summary
Constructors Constructor Description CreateConsentRequestValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ValidationResultvalidate(@NotNull CreateConsentRequestObject requestObject)Validates Create consent request according to: the presence of PSU Data in the request if it's mandated by the profile support of account reference types support of global consent for All Psd2 support of bank offered consent support of available account access support of combined service indicator If there are new consent requirements, this method has to be updated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.xs2a.service.validator.BusinessValidator
buildWarningMessages
-
-
-
-
Method Detail
-
validate
@NotNull public @NotNull ValidationResult validate(@NotNull @NotNull CreateConsentRequestObject requestObject)
Validates Create consent request according to:- the presence of PSU Data in the request if it's mandated by the profile
- support of account reference types
- support of global consent for All Psd2
- support of bank offered consent
- support of available account access
- support of combined service indicator
- Specified by:
validatein interfaceBusinessValidator<CreateConsentRequestObject>- Parameters:
requestObject- create consent request object- Returns:
- ValidationResult instance, that contains boolean isValid, that shows if request is valid and MessageError for invalid case
-
-