Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Math\Random $mathRandom) | |
generateRandomString ($length) | |
generateToken () | |
generateTokenSecret () | |
generateVerifier () | |
generateConsumerKey () | |
generateConsumerSecret () | |
Data Fields | |
const | LENGTH_TOKEN = 32 |
const | LENGTH_TOKEN_SECRET = 32 |
const | LENGTH_TOKEN_VERIFIER = 32 |
const | LENGTH_CONSUMER_KEY = 32 |
const | LENGTH_CONSUMER_SECRET = 32 |
const | LENGTH_NONCE = 32 |
const | CALLBACK_ESTABLISHED = 'oob' |
Protected Attributes | |
$_mathRandom | |
__construct | ( | \Magento\Framework\Math\Random | $mathRandom | ) |
generateConsumerKey | ( | ) |
Generate random string for consumer key
Definition at line 106 of file Oauth.php.
generateConsumerSecret | ( | ) |
Generate random string for consumer secret
Definition at line 116 of file Oauth.php.
generateRandomString | ( | $length | ) |
Generate random string for token or secret or verifier
int | $length | String length |
generateToken | ( | ) |
Generate random string for token
Definition at line 76 of file Oauth.php.
generateTokenSecret | ( | ) |
Generate random string for token secret
Definition at line 86 of file Oauth.php.
generateVerifier | ( | ) |
Generate random string for verifier
Definition at line 96 of file Oauth.php.
const CALLBACK_ESTABLISHED = 'oob' |
Value of callback URL when it is established or if the client is unable to receive callbacks
const LENGTH_CONSUMER_KEY = 32 |