d9a80e7da9495d7dce998607166fa1fc56f468ee
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 namespace PayPal\Auth;
3 use PayPal\Auth\IPPThirdPartyAuthorization;
4 /**
5  *
6  * Represents token based third party authorization
7  * Token based authorization credentials are obtained using
8  * the Permissions API
9  */
10 class PPTokenAuthorization implements IPPThirdPartyAuthorization {
11         
12         /**
13          * Permanent access token that identifies the relationship 
14          * between the authorizing user and the API caller.
15          * @var string
16          */
17         private $accessToken;
18         
19         /**
20          * The token secret/password that will need to be used when 
21          * generating the signature.
22          * @var string
23          */
24         private $tokenSecret;
25         
26         public function __construct($accessToken, $tokenSecret) {
27                 $this->accessToken = $accessToken;
28                 $this->tokenSecret = $tokenSecret;
29         }
30         
31         public function getAccessToken() {
32                 return $this->accessToken;
33         }
34         
35         public function getTokenSecret() {
36                 return $this->tokenSecret;
37         }
38 }