You are here

protected function LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_RSA_SHA1.php \LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
  2. 7.4 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_RSA_SHA1.php \LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
  3. 7.6 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_RSA_SHA1.php \LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()

* Fetch the public CERT key for the signature * *

Parameters

LingotekOAuthRequest request: * @return string public key

1 call to LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
LingotekOAuthSignatureMethod_RSA_SHA1::verify in lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_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/LingotekOAuthSignatureMethod_RSA_SHA1.php, line 50

Class

LingotekOAuthSignatureMethod_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("LingotekOAuthSignatureMethod_RSA_SHA1::fetch_public_cert not implemented");
}