Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
string $_accessTokenUrl = 'null'
The URL to which requests for an Access Token should be directed.
When absent, assumed siteUrl+'/access_token'
string $_authorizeUrl = 'null'
The URL to which users should be redirected to authorize a Request Token.
When absent, assumed siteUrl+'/authorize'
string $_callbackUrl = 'null'
This optional value is used to define where the user is redirected to after authorizing a Request Token from an OAuth Providers website.
It's optional since a Provider may ask for this to be defined in advance when registering a new application for a Consumer Key.
string $_consumerKey = 'null'
An OAuth application's Consumer Key.
string $_consumerSecret = 'null'
Every Consumer Key has a Consumer Secret unless you're in RSA-land.
string $_requestMethod = 'Zend_Oauth'
Preferred request Method - one of GET or POST - which Zend_Oauth will enforce as standard throughout the library. Generally a default of POST works fine unless a Provider specifically requires otherwise.
string $_requestScheme = 'Zend_Oauth'
Three request schemes are defined by OAuth, of which passing all OAuth parameters by Header is preferred. The other two are POST Body and Query String.
string $_requestTokenUrl = 'null'
The URL to which requests for a Request Token should be directed.
When absent, assumed siteUrl+'/request_token'
Zend_Crypt_Rsa_Key_Private $_rsaPrivateKey = 'null'
If relevant, a PEM encoded RSA private key encapsulated as a Zend_Crypt_Rsa Key
Zend_Crypt_Rsa_Key_Public $_rsaPublicKey = 'null'
If relevant, a PEM encoded RSA public key encapsulated as a Zend_Crypt_Rsa Key
string $_signatureMethod = 'HMAC-SHA1'
Signature method used when signing all parameters for an HTTP request
string $_siteUrl = 'null'
The URL root to append default OAuth endpoint paths.
Zend_Oauth_Token $_token = 'null'
Generally this will nearly always be an Access Token represented as a Zend_Oauth_Token_Access object.
string $_version = '1.0'
OAuth Version; This defaults to 1.0 - Must not be changed!
__construct(
array|Zend_Config $options
=
null
)
:
void
Constructor; create a new object with an optional array|Zend_Config instance containing initialising options.
getAccessTokenUrl(
)
:
string
Get access token URL
If no access token URL has been set, but a site URL has, returns the site URL with the string "/access_token" appended.
getAuthorizeUrl(
)
:
string
Get authorization URL
If no authorization URL has been set, but a site URL has, returns the site URL with the string "/authorize" appended.
getCallbackUrl(
)
:
string
Get callback URL
getConsumerKey(
)
:
string
Get consumer key
getConsumerSecret(
)
:
string
Get consumer secret
Returns RSA private key if set; otherwise, returns any previously set consumer secret.
getRequestMethod(
)
:
string
Get request method
getRequestScheme(
)
:
string
Get request scheme
getRequestTokenUrl(
)
:
string
Get request token URL
If no request token URL has been set, but a site URL has, returns the site URL with the string "/request_token" appended.
getRsaPrivateKey(
)
:
Zend_Crypt_Rsa_Key_Private
Get RSA private key
getRsaPublicKey(
)
:
Zend_Crypt_Rsa_Key_Public
Get RSA public key
getSignatureMethod(
)
:
string
Get signature method
getSiteUrl(
)
:
string
Get site URL
getToken(
)
:
Zend_Oauth_Token
Get OAuth token
getUserAuthorizationUrl(
)
:
string
Get user authorization URL
getVersion(
)
:
string
Get version
setAccessTokenUrl(
string $url
)
:
Zend_Oauth_Config
Set access token URL
setAuthorizeUrl(
string $url
)
:
Zend_Oauth_Config
Set authorization URL
setCallbackUrl(
string $url
)
:
Zend_Oauth_Config
Set callback URL
setConsumerKey(
string $key
)
:
Zend_Oauth_Config
Set consumer key
setConsumerSecret(
string $secret
)
:
Zend_Oauth_Config
Set consumer secret
setOptions(
array|Zend_Config $options
)
:
Zend_Oauth_Config
Parse option array or Zend_Config instance and setup options using their relevant mutators.
setRequestMethod(
string $method
)
:
Zend_Oauth_Config
Set request method
setRequestScheme(
string $scheme
)
:
Zend_Oauth_Config
Set request scheme
setRequestTokenUrl(
string $url
)
:
Zend_Oauth_Config
Set request token URL
setRsaPrivateKey(
Zend_Crypt_Rsa_Key_Private $key
)
:
Zend_Oauth_Config
Set RSA private key
setRsaPublicKey(
Zend_Crypt_Rsa_Key_Public $key
)
:
Zend_Oauth_Config
Set RSA public key
setSignatureMethod(
string $method
)
:
Zend_Oauth_Config
Set signature method
setSiteUrl(
string $url
)
:
Zend_Oauth_Config
Set site URL
setToken(
Zend_Oauth_Token $token
)
:
Zend_Oauth_Config
Set OAuth token
setUserAuthorizationUrl(
string $url
)
:
Zend_Oauth_Config
Set user authorization URL
setVersion(
string $version
)
:
Zend_Oauth_Config
Set version