Total Complexity | 3 |
Total Lines | 76 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Hostbased extends Configuration implements Authentication |
||
13 | { |
||
14 | /** |
||
15 | * Username. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $username; |
||
20 | |||
21 | /** |
||
22 | * Hostname. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $hostname; |
||
27 | |||
28 | /** |
||
29 | * Public key file. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $pubkeyfile; |
||
34 | |||
35 | /** |
||
36 | * Private key file. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $privkeyfile; |
||
41 | |||
42 | /** |
||
43 | * Passphrase. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $passphrase; |
||
48 | |||
49 | /** |
||
50 | * Local username. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $local_username; |
||
55 | |||
56 | /** |
||
57 | * Constructor. |
||
58 | * |
||
59 | * @param object $configuration Configuration object |
||
60 | * @return void |
||
61 | */ |
||
62 | public function __construct(Configuration $configuration) |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | final public function authenticate($resource) |
||
91 |