You are here

public function OAuthRequestVerifier::setAcceptedSignatureMethods in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/oauth-php/library/OAuthRequestVerifier.php \OAuthRequestVerifier::setAcceptedSignatureMethods()

* *

Parameters

array $accepted The array of accepted signature methods, or if null is passed : * all supported methods are accepted and there is no filtering. *

File

lib/oauth-php/library/OAuthRequestVerifier.php, line 295

Class

OAuthRequestVerifier

Code

public function setAcceptedSignatureMethods($accepted = null) {
  if (is_array($accepted)) {
    $this->accepted_signatures = $accepted;
  }
  else {
    if ($accepted == null) {
      $this->accepted_signatures = null;
    }
  }
}