2019-08-23 11:28:04 +03:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
namespace common\components\OAuth2\Keys;
|
2019-08-23 11:28:04 +03:00
|
|
|
|
|
|
|
use League\OAuth2\Server\CryptKeyInterface;
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
final class EmptyKey implements CryptKeyInterface {
|
2019-08-23 11:28:04 +03:00
|
|
|
|
|
|
|
public function getKeyPath(): string {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPassPhrase(): ?string {
|
2019-09-22 00:17:21 +03:00
|
|
|
return null;
|
2019-08-23 11:28:04 +03:00
|
|
|
}
|
|
|
|
|
2024-12-02 15:10:55 +05:00
|
|
|
public function getKeyContents(): string {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
2019-08-23 11:28:04 +03:00
|
|
|
}
|