@Component public class CreateConsentRequestValidator extends Object implements BusinessValidator<CreateConsentRequestObject>
| Constructor and Description |
|---|
CreateConsentRequestValidator() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ValidationResult |
validate(@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.
|
@NotNull public @NotNull ValidationResult validate(@NotNull @NotNull CreateConsentRequestObject requestObject)
validate in interface BusinessValidator<CreateConsentRequestObject>requestObject - create consent request objectCopyright © 2019. All rights reserved.