You are here

protected function OAuthSignatureMethod_RSA_SHA1::fetch_public_cert in Lingotek Translation 7.3

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

* Fetch the public CERT key for the signature * *

Parameters

OAuthRequest request: * @return string public key

1 call to OAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
OAuthSignatureMethod_RSA_SHA1::verify in lib/oauth-php/library/signature_method/OAuthSignatureMethod_RSA_SHA1.php
* Check if the request signature is the same as the one calculated for the request. * *

File

lib/oauth-php/library/signature_method/OAuthSignatureMethod_RSA_SHA1.php, line 50

Class

OAuthSignatureMethod_RSA_SHA1

Code

protected function fetch_public_cert($request) {

  // not implemented yet, ideas are:
  // (1) do a lookup in a table of trusted certs keyed off of consumer
  // (2) fetch via http using a url provided by the requester
  // (3) some sort of specific discovery code based on request
  //
  // either way should return a string representation of the certificate
  throw OAuthException2("OAuthSignatureMethod_RSA_SHA1::fetch_public_cert not implemented");
}