Class to represent an OAuth signature method. More...
Inheritance diagram for ceLTIc\LTI\OAuth\OAuthSignatureMethod:Public Member Functions | |
| string | get_name () |
| Needs to return the name of the Signature Method (eg HMAC-SHA1). | |
| string | build_signature (OAuthRequest $request, OAuthConsumer $consumer, ?OAuthToken $token) |
| Build up the signature. | |
| bool | check_signature (OAuthRequest $request, OAuthConsumer $consumer, ?OAuthToken $token, string $signature) |
| Verifies that a given signature is correct. | |
Class to represent an OAuth signature method.
|
abstract |
Build up the signature.
NOTE: The output of this function MUST NOT be urlencoded. the encoding is handled in OAuthRequest when the final request is serialized
| OAuthRequest | $request | Request |
| OAuthConsumer | $consumer | Consumer |
| OAuthToken | $token | Token |
Reimplemented in ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA1, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA224, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA256, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA384, and ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA512.
| bool ceLTIc\LTI\OAuth\OAuthSignatureMethod::check_signature | ( | OAuthRequest | $request, |
| OAuthConsumer | $consumer, | ||
| ?OAuthToken | $token, | ||
| string | $signature ) |
Verifies that a given signature is correct.
| OAuthRequest | $request | |
| OAuthConsumer | $consumer | |
| OAuthToken | $token | |
| string | $signature |
|
abstract |
Needs to return the name of the Signature Method (eg HMAC-SHA1).
Reimplemented in ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA1, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA224, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA256, ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA384, and ceLTIc\LTI\OAuth\OAuthSignatureMethod_HMAC_SHA512.
Referenced by ceLTIc\LTI\OAuth\OAuthRequest\to_header().