ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullSigner.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
29 class NullSigner implements Signer
30 {
31  public function sign(
32  string $signable_payload,
33  SigningKey $signing_key,
34  ): string {
35  return $signing_key->get();
36  }
37 
38  public function verify(
39  string $data,
40  string $signature,
41  int $validity,
42  SigningKey $signing_key
43  ): bool {
44  return $signature === $signing_key->get();
45  }
46 }
sign(string $signable_payload, SigningKey $signing_key,)
Definition: NullSigner.php:31
verify(string $data, string $signature, int $validity, SigningKey $signing_key)
Definition: NullSigner.php:38