TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rsaauth\Backend\CommandLineBackend Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Backend\CommandLineBackend:
TYPO3\CMS\Rsaauth\Backend\AbstractBackend

Public Member Functions

 __construct ()
 
 __wakeup ()
 
 decrypt ($privateKey, $data)
 
 isAvailable ()
 
- Public Member Functions inherited from TYPO3\CMS\Rsaauth\Backend\AbstractBackend
 createNewKeyPair ()
 
 decrypt ($privateKey, $data)
 
 isAvailable ()
 
 getLastError ()
 

Public Attributes

const DEFAULT_EXPONENT = 65537
 

Protected Attributes

 $opensslPath
 
 $temporaryDirectory
 
- Protected Attributes inherited from TYPO3\CMS\Rsaauth\Backend\AbstractBackend
 $error = ''
 

Detailed Description

This class contains an OpenSSL backend for the TYPO3 RSA authentication service. It uses shell version of OpenSSL to perform tasks. See class for the information on using backends.

Definition at line 26 of file CommandLineBackend.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::__construct ( )

Creates an instance of this class. It obtains a path to the OpenSSL binary.

Definition at line 53 of file CommandLineBackend.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\CommandUtility\getCommand().

Member Function Documentation

◆ __wakeup()

◆ decrypt()

TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::decrypt (   $privateKey,
  $data 
)
Parameters
string$privateKeyThe private key (obtained from a call to createNewKeyPair())
string$dataData to decrypt (base64-encoded)
Returns
string Decrypted data or NULL in case of an error
See also
::decrypt()

Definition at line 145 of file CommandLineBackend.php.

References TYPO3\CMS\Core\Utility\CommandUtility\exec(), and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ isAvailable()

TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::isAvailable ( )

Checks if command line version of the OpenSSL is available and can be executed successfully.

Returns
bool
See also
::isAvailable()

Definition at line 170 of file CommandLineBackend.php.

References TYPO3\CMS\Core\Utility\CommandUtility\exec().

Member Data Documentation

◆ $opensslPath

TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::$opensslPath
protected

Definition at line 38 of file CommandLineBackend.php.

◆ $temporaryDirectory

TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::$temporaryDirectory
protected

Definition at line 47 of file CommandLineBackend.php.

◆ DEFAULT_EXPONENT

const TYPO3\CMS\Rsaauth\Backend\CommandLineBackend::DEFAULT_EXPONENT = 65537