示例#1
0
 public function __construct($data_store)
 {
     parent::__construct($data_store);
     $hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
     $this->add_signature_method($hmac_method);
     $this->timestamp_threshold = 300;
     // a token (in requestToken) expires before 300 secondes
 }
示例#2
0
 function __construct($consumer_key, $nonce, $timestamp, $signature_method, $signature, $token)
 {
     $this->setParam('oauth_token', $token, true);
     $this->setParam('oauth_consumer_key', $consumer_key, true);
     $this->setParam('oauth_nonce', $nonce, true);
     $this->setParam('oauth_timestamp', $timestamp, true);
     $this->setParam('oauth_signature_method', $signature_method, true);
     $this->setParam('oauth_signature', $signature, true);
     parent::__construct();
 }
示例#3
0
 function __construct()
 {
     parent::__construct(new FKOAuthDataStore());
     $this->add_signature_method(new OAuthSignatureMethod_PLAINTEXT());
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
 }
示例#4
0
 /**
  * constructor to set the signatures
  */
 public function __construct()
 {
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
     parent::__construct(new OAuthSymfonyStore());
 }
示例#5
0
 public function __construct($data_store)
 {
     parent::__construct($data_store);
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
 }