Interface RequestDataToSignNormalizer


  • public interface RequestDataToSignNormalizer
    • Method Detail

      • canonicalString

        String canonicalString​(RequestToSign toSign)
        Computes canonical (normalized) string representation of the request
        Parameters:
        toSign - Request that is going to be signed
        Returns:
        String value of the toSign
      • canonicalStringToSign

        default String canonicalStringToSign​(RequestToSign toSign)
        Computes shortened form (SHA-256 hash) of the request canonical string, so that it can be used in headers (i.e. XML payment bodies can be huge, so we can hash request string)
        Parameters:
        toSign - Request that is going to be signed
        Returns:
        Short hash value of the toSign ready to be used as the request signature Note: Technically hash strength other than collision resistance is not of much importance here as the value is going to be signed with JWS