1 | <?php |
||
10 | class SSH2PublicKeyFile implements SSH2AuthInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $username; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $publicKeyFile; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $privateKeyFile; |
||
26 | |||
27 | /** |
||
28 | * @var null|string |
||
29 | */ |
||
30 | protected $passPhrase; |
||
31 | |||
32 | /** |
||
33 | * @param string $username The authentication username |
||
34 | * @param string $publicKeyFile The path of the public key file |
||
35 | * @param string $privateKeyFile The path of the private key file |
||
36 | * @param string|null $passPhrase An optional pass phrase for the key |
||
37 | */ |
||
38 | 2 | public function __construct($username, $publicKeyFile, $privateKeyFile, $passPhrase = null) |
|
45 | |||
46 | /** |
||
47 | * @override |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function authenticate($conn) |
||
60 | } |
||
61 |