TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CommandLineBackend Class Reference
Inheritance diagram for CommandLineBackend:
AbstractBackend

Public Member Functions

 __construct ()
 
 decrypt ($privateKey, $data)
 
 isAvailable ()
 
- Public Member Functions inherited from AbstractBackend
 createNewKeyPair ()
 
 decrypt ($privateKey, $data)
 
 isAvailable ()
 
 getLastError ()
 

Public Attributes

const DEFAULT_EXPONENT = 65537
 

Protected Attributes

 $opensslPath
 
 $temporaryDirectory
 
- Protected Attributes inherited from 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 ( )

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 CommandUtility\getCommand().

Member Function Documentation

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 131 of file CommandLineBackend.php.

References CommandUtility\exec(), and StringUtility\getUniqueId().

isAvailable ( )

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

Returns
bool
See Also
::isAvailable()

Definition at line 156 of file CommandLineBackend.php.

References CommandUtility\exec().

Member Data Documentation

$opensslPath
protected

Definition at line 38 of file CommandLineBackend.php.

$temporaryDirectory
protected

Definition at line 47 of file CommandLineBackend.php.

const DEFAULT_EXPONENT = 65537