build_signature()
check_signature()
get_name()
fetch_private_cert()
fetch_public_cert()
The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5.
It is assumed that the Consumer has provided its RSA public key in a verified way to the Service Provider, in a manner which is beyond the scope of this specification. - Chapter 9.3 ("RSA-SHA1")
build_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token) : string
the encoding is handled in OAuthRequest when the final request is serialized
\Moneybird\Lib\OAuthRequest
\Moneybird\Lib\OAuthConsumer
\Moneybird\Lib\OAuthToken
string
check_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token, string $signature) : bool
\Moneybird\Lib\OAuthRequest
\Moneybird\Lib\OAuthConsumer
\Moneybird\Lib\OAuthToken
string
bool
get_name() : string
string
fetch_private_cert($request)
fetch_public_cert($request)