Class CreateConsentRequestValidator

    • Constructor Detail

      • CreateConsentRequestValidator

        public CreateConsentRequestValidator()
    • Method Detail

      • validate

        @NotNull
        public @NotNull de.adorsys.psd2.xs2a.core.service.validator.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
        If there are new consent requirements, this method has to be updated.
        Specified by:
        validate in interface BusinessValidator<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