TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rsaauth\Backend\CommandLineBackend Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\Backend\CommandLineBackend:
TYPO3\CMS\Rsaauth\Backend\AbstractBackend tx_rsaauth_cmdline_backend

Public Member Functions

 __construct ()
 
 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 a 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.

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

Definition at line 26 of file CommandLineBackend.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ 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 a error
See also
::decrypt()

Definition at line 123 of file CommandLineBackend.php.

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

◆ isAvailable()

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

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

Returns
void
See also
::isAvailable()

Definition at line 147 of file CommandLineBackend.php.

References $result, and TYPO3\CMS\Core\Utility\CommandUtility\exec().

Member Data Documentation

◆ $opensslPath

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

Definition at line 37 of file CommandLineBackend.php.

◆ $temporaryDirectory

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

Definition at line 46 of file CommandLineBackend.php.

◆ DEFAULT_EXPONENT

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