TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rsaauth\Storage\StorageFactory Class Reference

Static Public Member Functions

static getStorage ()
 
static setPreferredStorage ($preferredStorage)
 

Static Protected Attributes

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

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\StorageFactory::getStorage ( )
static

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

Returns
A storage

Definition at line 49 of file StorageFactory.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj().

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$preferredStoragePreferred storage
Returns
void

Definition at line 64 of file StorageFactory.php.

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

Member Data Documentation

◆ $preferredStorage

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

◆ $storageInstance

TYPO3\CMS\Rsaauth\Storage\StorageFactory::$storageInstance = null
staticprotected

Definition at line 40 of file StorageFactory.php.