Class TppUriHeaderValidator

  • All Implemented Interfaces:
    BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri>

    @Component
    public class TppUriHeaderValidator
    extends Object
    implements BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri>
    • Constructor Detail

      • TppUriHeaderValidator

        public TppUriHeaderValidator()
    • Method Detail

      • validate

        @NotNull
        public @NotNull ValidationResult validate​(@NotNull
                                                  @NotNull de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri tppRedirectUri)
        Description copied from interface: BusinessValidator
        Validates some object according to some business rules
        Specified by:
        validate in interface BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri>
        Parameters:
        tppRedirectUri - business object to be validated
        Returns:
        valid result if the object is valid, invalid result with appropriate error otherwise
      • buildWarningMessages

        @NotNull
        public @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(@NotNull
                                                                                                         @NotNull de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri tppRedirectUri)
        Description copied from interface: BusinessValidator
        Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
        Specified by:
        buildWarningMessages in interface BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri>
        Parameters:
        tppRedirectUri - business object to be validated
        Returns:
        empty set if the object doesn't have inconsistencies, set of warning messages otherwise