Class TppUriHeaderValidator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(@NotNull de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri tppRedirectUri)
      Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
      @NotNull ValidationResult validate​(@NotNull de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri tppRedirectUri)
      Validates some object according to some business rules
      de.adorsys.psd2.xs2a.core.error.MessageError validate​(Map<String,​String> headers, de.adorsys.psd2.xs2a.core.error.MessageError messageError)
      Validates HTTP headers from the request and populates given error with error text if headers are invalid
    • 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
      • validate

        public de.adorsys.psd2.xs2a.core.error.MessageError validate​(Map<String,​String> headers,
                                                                     de.adorsys.psd2.xs2a.core.error.MessageError messageError)
        Description copied from interface: HeaderValidator
        Validates HTTP headers from the request and populates given error with error text if headers are invalid
        Specified by:
        validate in interface HeaderValidator
        Parameters:
        headers - headers from the request, with their names acting as keys
        messageError - error to be populated
        Returns:
        MessageError object, enriched or not.