| 1 | <?php  | 
            ||
| 5 | class JwtKeySecret implements JwtKeyInterface  | 
            ||
| 6 | { | 
            ||
| 7 | |||
| 8 | protected $key;  | 
            ||
| 9 | |||
| 10 | /**  | 
            ||
| 11 | * JwtKeySecret constructor.  | 
            ||
| 12 | * @param $key  | 
            ||
| 13 | * @param bool $decode  | 
            ||
| 14 | */  | 
            ||
| 15 | public function __construct($key, $decode = true)  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @param $key  | 
            ||
| 22 | * @param bool $decode  | 
            ||
| 23 | * @return JwtKeySecret  | 
            ||
| 24 | */  | 
            ||
| 25 | public static function getInstance($key, $decode = true)  | 
            ||
| 29 | |||
| 30 | public function getPublicKey()  | 
            ||
| 34 | |||
| 35 | public function getPrivateKey()  | 
            ||
| 39 | |||
| 40 | public function getAlghoritm()  | 
            ||
| 44 | }  | 
            ||
| 45 |