Public Member Functions | Protected Member Functions | Private Attributes

oxPasswordSaltGenerator Class Reference

List of all members.

Public Member Functions

 __construct (oxOpenSSLFunctionalityChecker $openSSLFunctionalityChecker)
 generate ()

Protected Member Functions

 _getOpenSSLFunctionalityChecker ()
 _customSaltGenerator ()

Private Attributes

 $_openSSLFunctionalityChecker

Detailed Description

Generates Salt for the user password

Definition at line 7 of file oxpasswordsaltgenerator.php.


Constructor & Destructor Documentation

oxPasswordSaltGenerator.__construct ( oxOpenSSLFunctionalityChecker openSSLFunctionalityChecker  ) 

Sets dependencies.

Parameters:
oxOpenSSLFunctionalityChecker $openSSLFunctionalityChecker

Definition at line 20 of file oxpasswordsaltgenerator.php.


Member Function Documentation

oxPasswordSaltGenerator._customSaltGenerator (  )  [protected]

Generates custom salt.

Returns:
string

Definition at line 57 of file oxpasswordsaltgenerator.php.

oxPasswordSaltGenerator._getOpenSSLFunctionalityChecker (  )  [protected]

Gets open SSL functionality checker.

Returns:
oxOpenSSLFunctionalityChecker

Definition at line 47 of file oxpasswordsaltgenerator.php.

oxPasswordSaltGenerator.generate (  ) 

Generates salt. If openssl_random_pseudo_bytes function is not available, than fallback to custom salt generator.

Returns:
string

Definition at line 31 of file oxpasswordsaltgenerator.php.


Member Data Documentation

oxPasswordSaltGenerator.$_openSSLFunctionalityChecker [private]

Definition at line 13 of file oxpasswordsaltgenerator.php.


The documentation for this class was generated from the following file: