SunnysideUp\ShareThis\OAuthSignatureMethod_RSA_SHA1
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")
Synopsis
class OAuthSignatureMethod_RSA_SHA1
extends OAuthSignatureMethod
{
- // methods
- public void get_name()
- protected abstract void fetch_public_cert()
- protected abstract void fetch_private_cert()
- public void build_signature()
- public void check_signature()
- // Inherited methods from OAuthSignatureMethod
- public abstract string get_name()
- public abstract string build_signature()
- public bool check_signature()
Hierarchy
Methods
protected
public
Inherited from SunnysideUp\ShareThis\OAuthSignatureMethod
public
- build_signature() — Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
- check_signature() — Verifies that a given signature is correct
- get_name() — Needs to return the name of the Signature Method (ie HMAC-SHA1)