| 1 | <?php |
||
| 17 | final class SignatureInstruction implements SignatureInstructionInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var \Jose\Object\JWKInterface |
||
| 21 | */ |
||
| 22 | protected $key = null; |
||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $protected_header = []; |
||
| 27 | /** |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $unprotected_header = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * SignatureInstruction constructor. |
||
| 34 | * |
||
| 35 | * @param \Jose\Object\JWKInterface $key |
||
| 36 | * @param array $protected_header |
||
| 37 | * @param array $unprotected_header |
||
| 38 | */ |
||
| 39 | public function __construct(JWKInterface $key, array $protected_header = [], array $unprotected_header = []) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function getKey() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function getProtectedHeader() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function getUnprotectedHeader() |
||
| 69 | } |
||
| 70 |