Skip to content

Commit 72ef338

Browse files
committed
Add configuration interface
1 parent c1a4d13 commit 72ef338

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace SoapBox\SignedRequests\Configurations;
4+
5+
interface Configuration
6+
{
7+
/**
8+
* Returns the name of the header that will contain the algorithm used to
9+
* sign the request.
10+
*
11+
* @return string
12+
*/
13+
public function getAlgorithmHeader(): string;
14+
15+
/**
16+
* Returns the name of the header that will contain the generated signature.
17+
*
18+
* @return string
19+
*/
20+
public function getSignatureHeader(): string;
21+
22+
/**
23+
* Returns the algorithm to use to generate the signature.
24+
*
25+
* @return string
26+
*/
27+
public function getSigningAlgorithm(): string;
28+
29+
/**
30+
* Returns the key to sign the request with.
31+
*
32+
* @return string
33+
*/
34+
public function getSigningKey(): string;
35+
}

0 commit comments

Comments
 (0)