‪TYPO3CMS  9.5
TYPO3\CMS\Rsaauth\Storage\SessionStorage Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Storage\SessionStorage:
TYPO3\CMS\Rsaauth\Storage\AbstractStorage

Public Member Functions

 __construct ()
 
string get ()
 
 put ($key)
 

Detailed Description

This class contains a session-based storage for private keys. This storage is not secure enough because its implementation stores keys completely in the PHP sessions. PHP sessions usually store data in the file system and it is easy to extract. This storage is useful only as an example. It is better to use "split" storage for keys.

Definition at line 24 of file SessionStorage.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Rsaauth\Storage\SessionStorage::__construct ( )

Creates an instance of this class. It checks and initializes PHP sessions if necessary.

Definition at line 30 of file SessionStorage.php.

Member Function Documentation

◆ get()

string TYPO3\CMS\Rsaauth\Storage\SessionStorage::get ( )

Obtains key from the session

Returns
‪string The key or NULL
See also
‪\TYPO3\CMS\Rsaauth\Storage\AbstractStorage::get()

Reimplemented from TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Definition at line 43 of file SessionStorage.php.

◆ put()

TYPO3\CMS\Rsaauth\Storage\SessionStorage::put (   $key)

Puts key to the session

Parameters
string$key‪The key
See also
‪\TYPO3\CMS\Rsaauth\Storage\AbstractStorage::put()

Reimplemented from TYPO3\CMS\Rsaauth\Storage\AbstractStorage.

Definition at line 54 of file SessionStorage.php.