You are here

public function LingotekOAuthRequestVerifier::setAcceptedSignatureMethods in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::setAcceptedSignatureMethods()
  2. 7.4 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::setAcceptedSignatureMethods()
  3. 7.5 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::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/LingotekOAuthRequestVerifier.php, line 295

Class

LingotekOAuthRequestVerifier

Code

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