Namespace from signatures methods was changed
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <?php | ||||
| 
 | ||||
| namespace Eher\OAuth; | ||||
| namespace Eher\OAuth\SignatureMethod; | ||||
| 
 | ||||
| /** | ||||
|  * The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] | ||||
| @@ -9,7 +9,7 @@ | ||||
|  * character (ASCII code 38) even if empty. | ||||
|  *   - Chapter 9.2 ("HMAC-SHA1") | ||||
|  */ | ||||
| class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod { | ||||
| class HmacSha1 extends SignatureMethod { | ||||
|   function get_name() { | ||||
|     return "HMAC-SHA1"; | ||||
|   } | ||||
| @@ -1,13 +1,13 @@ | ||||
| <?php | ||||
| 
 | ||||
| namespace Eher\OAuth; | ||||
| namespace Eher\OAuth\SignatureMethod; | ||||
| 
 | ||||
| /** | ||||
|  * The PLAINTEXT method does not provide any security protection and SHOULD only be used | ||||
|  * over a secure channel such as HTTPS. It does not use the Signature Base String. | ||||
|  *   - Chapter 9.4 ("PLAINTEXT") | ||||
|  */ | ||||
| class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod { | ||||
| class PlainText extends SignatureMethod { | ||||
|   public function get_name() { | ||||
|     return "PLAINTEXT"; | ||||
|   } | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?php | ||||
| 
 | ||||
| namespace Eher\OAuth; | ||||
| namespace Eher\OAuth\SignatureMethod; | ||||
| 
 | ||||
| /** | ||||
|  * The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in | ||||
| @@ -10,7 +10,7 @@ | ||||
|  * specification. | ||||
|  *   - Chapter 9.3 ("RSA-SHA1") | ||||
|  */ | ||||
| abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod { | ||||
| abstract class RsaSha1 extends SignatureMethod { | ||||
|   public function get_name() { | ||||
|     return "RSA-SHA1"; | ||||
|   } | ||||
| @@ -1,12 +1,12 @@ | ||||
| <?php | ||||
| 
 | ||||
| namespace Eher\OAuth; | ||||
| namespace Eher\OAuth\SignatureMethod; | ||||
| 
 | ||||
| /** | ||||
|  * A class for implementing a Signature Method | ||||
|  * See section 9 ("Signing Requests") in the spec | ||||
|  */ | ||||
| abstract class OAuthSignatureMethod { | ||||
| abstract class SignatureMethod { | ||||
|   /** | ||||
|    * Needs to return the name of the Signature Method (ie HMAC-SHA1) | ||||
|    * @return string | ||||
		Reference in New Issue
	
	Block a user
	 Eher
					Eher