Esempio n. 1
0
 /**
  * Get nonce and generate it if not present 
  *
  * @return string
  */
 public function nonce()
 {
     if (!isset($this->options['nonce'])) {
         $this->options['nonce'] = OauthHelper::generateKey();
     }
     return $this->options['nonce'];
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct(OauthHelper::generateKey(16), OauthHelper::generateKey());
 }