TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rsaauth\Storage\SessionStorage Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Storage\SessionStorage:
TYPO3\CMS\Rsaauth\Storage\AbstractStorage tx_rsaauth_session_storage

Public Member Functions

 __construct ()
 
 get ()
 
 put ($key)
 
- Public Member Functions inherited from TYPO3\CMS\Rsaauth\Storage\AbstractStorage
 get ()
 
 put ($key)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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.

Author
Dmitry Dulepov dmitr.nosp@m.y@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 25 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.

Returns
void

Definition at line 33 of file SessionStorage.php.

Member Function Documentation

◆ get()

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

Obtains key from the session

Returns
string The key or NULL
See also
::get()

Definition at line 45 of file SessionStorage.php.

◆ put()

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

Puts key to the session

Parameters
string$keyThe key
See also
::put()

Definition at line 55 of file SessionStorage.php.