‪TYPO3CMS  9.5
TYPO3\CMS\Rsaauth\Backend\BackendFactory Class Reference

Static Public Member Functions

static AbstractBackend getBackend ()
 

Static Protected Attributes

static array $availableBackends
 
static bool $initialized = false
 
static AbstractBackend $selectedBackend
 

Detailed Description

This class contains a factory for the RSA backends.

Definition at line 20 of file BackendFactory.php.

Member Function Documentation

◆ getBackend()

static AbstractBackend TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend ( )
static

Obtains a backend. This function will return a non-abstract class, which is derived from the AbstractBackend. Applications should not use any methods that are not declared in the AbstractBackend.

Returns
AbstractBackend A backend

Definition at line 55 of file BackendFactory.php.

References TYPO3\CMS\Rsaauth\Backend\BackendFactory\$selectedBackend.

Referenced by TYPO3\CMS\Rsaauth\BackendWarnings\displayWarningMessages_postProcess(), TYPO3\CMS\Rsaauth\RsaEncryptionDecoder\getBackend(), and TYPO3\CMS\Rsaauth\RsaEncryptionEncoder\getRsaPublicKey().

Member Data Documentation

◆ $availableBackends

array TYPO3\CMS\Rsaauth\Backend\BackendFactory::$availableBackends
staticprotected
Initial value:
= array(
PhpBackend::class,
CommandLineBackend::class
)

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

Definition at line 28 of file BackendFactory.php.

◆ $initialized

bool TYPO3\CMS\Rsaauth\Backend\BackendFactory::$initialized = false
staticprotected

A flag that tells if the factory is initialized. This is to prevent continuous creation of backends in case if none of them is available.

Definition at line 38 of file BackendFactory.php.

◆ $selectedBackend

AbstractBackend TYPO3\CMS\Rsaauth\Backend\BackendFactory::$selectedBackend
staticprotected

A selected backend. This member is set in the getBackend() function. It will not be an abstract backend as shown below but a real class, which is derived from the AbstractBackend.

Definition at line 46 of file BackendFactory.php.

Referenced by TYPO3\CMS\Rsaauth\Backend\BackendFactory\getBackend().