‪TYPO3CMS  10.4
RsaauthExtractionUpdate.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
25 {
29  protected ‪$extension;
30 
34  protected ‪$confirmation;
35 
36  public function ‪__construct()
37  {
38  $this->extension = new ‪ExtensionModel(
39  'rsaauth',
40  'Deprecated rsaauth extension',
41  '10.0.0',
42  'friendsoftypo3/rsaauth',
43  'Contains a service to authenticate TYPO3 BE and FE users using private/public key encryption of passwords.'
44  );
45 
46  $this->confirmation = new ‪Confirmation(
47  'Are you sure?',
48  'Do not install this extension. Use HTTPS instead. ' . $this->extension->getDescription(),
49  false
50  );
51  }
52 
58  public function ‪getConfirmation(): ‪Confirmation
59  {
61  }
62 
69  public function ‪getIdentifier(): string
70  {
71  return 'rsaauthExtension';
72  }
73 
79  public function ‪getTitle(): string
80  {
81  return 'Install extension "rsaauth" from TER if the site is still not secured using HTTPS';
82  }
83 
89  public function ‪getDescription(): string
90  {
91  return 'The extension "rsaauth" adds a public/private key based encryption for Backend and Frontend'
92  . ' login passwords. The approach is limited and has various flaws. The extension is fully'
93  . ' obsolete if the instance uses HTTPS.';
94  }
95 
102  public function ‪updateNecessary(): bool
103  {
104  return !‪ExtensionManagementUtility::isLoaded('rsaauth');
105  }
106 
114  public function ‪getPrerequisites(): array
115  {
116  return [
117  DatabaseUpdatedPrerequisite::class
118  ];
119  }
120 }
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\updateNecessary
‪bool updateNecessary()
Definition: RsaauthExtractionUpdate.php:100
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\getDescription
‪string getDescription()
Definition: RsaauthExtractionUpdate.php:87
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\$extension
‪TYPO3 CMS Install Updates ExtensionModel $extension
Definition: RsaauthExtractionUpdate.php:28
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:16
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Install\Updates\ExtensionModel
Definition: ExtensionModel.php:26
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:21
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate
Definition: RsaauthExtractionUpdate.php:25
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: RsaauthExtractionUpdate.php:32
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\getIdentifier
‪string getIdentifier()
Definition: RsaauthExtractionUpdate.php:67
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: RsaauthExtractionUpdate.php:56
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\getPrerequisites
‪string[] getPrerequisites()
Definition: RsaauthExtractionUpdate.php:112
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\getTitle
‪string getTitle()
Definition: RsaauthExtractionUpdate.php:77
‪TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate\__construct
‪__construct()
Definition: RsaauthExtractionUpdate.php:34