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'
Detailsstring $_authorizeUrl = 'null'The URL to which users should be redirected to authorize a Request Token.
When absent, assumed siteUrl+'/authorize'
Detailsstring $_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.
Detailsstring $_consumerKey = 'null'An OAuth application's Consumer Key.
Detailsstring $_consumerSecret = 'null'Every Consumer Key has a Consumer Secret unless you're in RSA-land.
Detailsstring $_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.
Detailsstring $_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.
Detailsstring $_requestTokenUrl = 'null'The URL to which requests for a Request Token should be directed.
When absent, assumed siteUrl+'/request_token'
DetailsZend_Crypt_Rsa_Key_Private $_rsaPrivateKey = 'null'If relevant, a PEM encoded RSA private key encapsulated as a Zend_Crypt_Rsa Key
DetailsZend_Crypt_Rsa_Key_Public $_rsaPublicKey = 'null'If relevant, a PEM encoded RSA public key encapsulated as a Zend_Crypt_Rsa Key
Detailsstring $_signatureMethod = 'HMAC-SHA1'Signature method used when signing all parameters for an HTTP request
Detailsstring $_siteUrl = 'null'The URL root to append default OAuth endpoint paths.
DetailsZend_Oauth_Token $_token = 'null'Generally this will nearly always be an Access Token represented as a Zend_Oauth_Token_Access object.
Detailsstring $_version = '1.0'OAuth Version; This defaults to 1.0 - Must not be changed!
Details__construct(
array|Zend_Config $options
=
null
)
:
voidConstructor; create a new object with an optional array|Zend_Config instance containing initialising options.
DetailsgetAccessTokenUrl(
)
:
stringGet 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.
DetailsgetAuthorizeUrl(
)
:
stringGet authorization URL
If no authorization URL has been set, but a site URL has, returns the site URL with the string "/authorize" appended.
DetailsgetCallbackUrl(
)
:
stringGet callback URL
DetailsgetConsumerKey(
)
:
stringGet consumer key
DetailsgetConsumerSecret(
)
:
stringGet consumer secret
Returns RSA private key if set; otherwise, returns any previously set consumer secret.
DetailsgetRequestMethod(
)
:
stringGet request method
DetailsgetRequestScheme(
)
:
stringGet request scheme
DetailsgetRequestTokenUrl(
)
:
stringGet 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.
DetailsgetRsaPrivateKey(
)
:
Zend_Crypt_Rsa_Key_PrivateGet RSA private key
DetailsgetRsaPublicKey(
)
:
Zend_Crypt_Rsa_Key_PublicGet RSA public key
DetailsgetSignatureMethod(
)
:
stringGet signature method
DetailsgetSiteUrl(
)
:
stringGet site URL
DetailsgetToken(
)
:
Zend_Oauth_TokenGet OAuth token
DetailsgetUserAuthorizationUrl(
)
:
stringGet user authorization URL
DetailsgetVersion(
)
:
stringGet version
DetailssetAccessTokenUrl(
string $url
)
:
Zend_Oauth_ConfigSet access token URL
DetailssetAuthorizeUrl(
string $url
)
:
Zend_Oauth_ConfigSet authorization URL
DetailssetCallbackUrl(
string $url
)
:
Zend_Oauth_ConfigSet callback URL
DetailssetConsumerKey(
string $key
)
:
Zend_Oauth_ConfigSet consumer key
DetailssetConsumerSecret(
string $secret
)
:
Zend_Oauth_ConfigSet consumer secret
DetailssetOptions(
array|Zend_Config $options
)
:
Zend_Oauth_ConfigParse option array or Zend_Config instance and setup options using their relevant mutators.
DetailssetRequestMethod(
string $method
)
:
Zend_Oauth_ConfigSet request method
DetailssetRequestScheme(
string $scheme
)
:
Zend_Oauth_ConfigSet request scheme
DetailssetRequestTokenUrl(
string $url
)
:
Zend_Oauth_ConfigSet request token URL
DetailssetRsaPrivateKey(
Zend_Crypt_Rsa_Key_Private $key
)
:
Zend_Oauth_ConfigSet RSA private key
DetailssetRsaPublicKey(
Zend_Crypt_Rsa_Key_Public $key
)
:
Zend_Oauth_ConfigSet RSA public key
DetailssetSignatureMethod(
string $method
)
:
Zend_Oauth_ConfigSet signature method
DetailssetSiteUrl(
string $url
)
:
Zend_Oauth_ConfigSet site URL
DetailssetToken(
Zend_Oauth_Token $token
)
:
Zend_Oauth_ConfigSet OAuth token
DetailssetUserAuthorizationUrl(
string $url
)
:
Zend_Oauth_ConfigSet user authorization URL
DetailssetVersion(
string $version
)
:
Zend_Oauth_ConfigSet version
Details