Definition at line 11 of file Generator.php.
◆ __construct()
- Parameters
-
\Magento\Framework\Oauth\Helper\Oauth | $oauthHelper | |
\Magento\Integration\Model\Oauth\NonceFactory | $nonceFactory | |
\Magento\Framework\Stdlib\DateTime\DateTime | $date | |
int | $nonceLength | - Length of the generated nonce |
Definition at line 44 of file Generator.php.
50 $this->_oauthHelper = $oauthHelper;
51 $this->_nonceFactory = $nonceFactory;
53 $this->_nonceLength = $nonceLength;
◆ generateNonce()
{Generate a new nonce for the consumer (if consumer is specified).
- Parameters
-
- Returns
- string The generated nonce value.
}
Implements NonceGeneratorInterface.
Definition at line 59 of file Generator.php.
61 return $this->_oauthHelper->generateRandomString($this->_nonceLength);
◆ generateTimestamp()
◆ $_date
◆ $_nonceFactory
◆ $_nonceLength
◆ $_oauthHelper
◆ TIME_DEVIATION
const TIME_DEVIATION = 600 |
Possible time deviation for timestamp validation in seconds.
Definition at line 36 of file Generator.php.
The documentation for this class was generated from the following file:
- vendor/magento/module-integration/Model/Oauth/Nonce/Generator.php