1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\SignatureCalculator\Validator;
6
7 use Team3\PayU\Configuration\Credentials\CredentialsInterface;
8 use Team3\PayU\SignatureCalculator\SignatureCalculatorException;
9
10 /**
11 * Will validate if given data is correctly signed for given credentials.
12 *
13 * Interface SignatureValidatorInterface
14 * @package Team3\PayU\SignatureCalculator\Validator
15 */
16 interface SignatureValidatorInterface
17 {
18 /**
19 * @param string $data
20 * @param string $signatureHeader
21 * @param CredentialsInterface $credentials
22 *
23 * @return bool
24 * @throws SignatureCalculatorException
25 */
26 public function isSignatureValid(
27 $data,
28 $signatureHeader,
29 CredentialsInterface $credentials
30 );
31 }
32