Namespace from signatures methods was changed

This commit is contained in:
Eher 2012-02-08 22:31:18 -02:00
parent ebb686a715
commit e2fa21dc44
4 changed files with 8 additions and 8 deletions

View File

@ -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 @@ namespace Eher\OAuth;
* 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";
}

View File

@ -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";
}

View File

@ -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 @@ namespace Eher\OAuth;
* 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";
}

View File

@ -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