public function setSignatureMethod($method = "")
{
if (empty($method)) {
$method = $this->_default_signature_method;
}
$method = strtoupper($method);
switch ($method) {
case 'PLAINTEXT':
case 'HMAC-SHA1':
$this->_parameters['oauth_signature_method'] = $method;
break;
default:
throw new OAuthSimpleException("Unknown signing method {$method} specified for OAuthSimple.setSignatureMethod");
break;
}
return $this;
}