Exemple #1
0
 /**
  * Build the signature for signing
  *
  * @param \OAuth\SignatureMethod\SignatureMethod $signatureMethod
  * @param \OAuth\Consumer $consumer
  * @param \OAuth\Token $token
  */
 public function buildSignature($signatureMethod, $consumer, $token)
 {
     $signature = $signatureMethod->buildSignature($this, $consumer, $token);
     return $signature;
 }
Exemple #2
0
 /**
  * Add a signature method
  * 
  * @param \OAuth\SignatureMethod\SignatureMethod $signatureMethod
  */
 public function addSignatureMethod($signatureMethod)
 {
     $this->signatureMethods[$signatureMethod->getName()] = $signatureMethod;
 }