‪TYPO3CMS  9.5
TYPO3\CMS\Rsaauth\Storage\StorageFactory Class Reference

Static Public Member Functions

static TYPO3 CMS Rsaauth Storage AbstractStorage getStorage ()
 
static setPreferredStorage ($preferredStorage)
 

Static Protected Attributes

static string $preferredStorage = \TYPO3\CMS\Rsaauth\Storage\SplitStorage::class
 
static TYPO3 CMS Rsaauth Storage AbstractStorage $storageInstance
 

Detailed Description

This class contains a factory for the RSA backends.

Definition at line 20 of file StorageFactory.php.

Member Function Documentation

◆ getStorage()

static TYPO3 CMS Rsaauth Storage AbstractStorage TYPO3\CMS\Rsaauth\Storage\StorageFactory::getStorage ( )
static

Obtains a storage. This function will return a non-abstract class, which is derived from \TYPO3\CMS\Rsaauth\Storage\AbstractStorage. Applications should not use any methods that are not declared in the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Returns
‪\TYPO3\CMS\Rsaauth\Storage\AbstractStorage A storage

Definition at line 47 of file StorageFactory.php.

References TYPO3\CMS\Rsaauth\Storage\StorageFactory\$storageInstance.

Referenced by TYPO3\CMS\Rsaauth\RsaEncryptionEncoder\getRsaPublicKey(), and TYPO3\CMS\Rsaauth\RsaEncryptionDecoder\getStorage().

◆ setPreferredStorage()

static TYPO3\CMS\Rsaauth\Storage\StorageFactory::setPreferredStorage (   $preferredStorage)
static

Sets the preferred storage to the factory. This method can be called from another extension or ext_localconf.php

Parameters
string$preferredStorage‪Preferred storage

Definition at line 61 of file StorageFactory.php.

References TYPO3\CMS\Rsaauth\Storage\StorageFactory\$preferredStorage.

Member Data Documentation

◆ $preferredStorage

string TYPO3\CMS\Rsaauth\Storage\StorageFactory::$preferredStorage = \TYPO3\CMS\Rsaauth\Storage\SplitStorage::class
staticprotected

A list of all available storages. Currently this list cannot be extended. This is for security reasons to avoid inserting some dummy storage to the list.

Definition at line 28 of file StorageFactory.php.

Referenced by TYPO3\CMS\Rsaauth\Storage\StorageFactory\setPreferredStorage().

◆ $storageInstance

TYPO3 CMS Rsaauth Storage AbstractStorage TYPO3\CMS\Rsaauth\Storage\StorageFactory::$storageInstance
staticprotected

An instance of the storage. This member is set in the getStorage() function. It will not be an abstract storage as shown below but a real class, which is derived from the \TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Definition at line 38 of file StorageFactory.php.

Referenced by TYPO3\CMS\Rsaauth\Storage\StorageFactory\getStorage().