boolean authenticate(
[string
$version = DEFAULT_CF_API_VERSION])
|
|
Attempt to validate Username/API Access Key
Attempts to validate credentials with the authentication service. It either returns True or throws an Exception. Accepts a single (optional) argument for the storage system API version.
Example:
# Create the authentication instance
#
# Perform authentication request
#
Tags:
Parameters:
Make sure the CF_Authentication instance has authenticated.
Ensures that the instance variables necessary to communicate with Cloud Files have been set from a previous authenticate() call.
Tags:
void ssl_use_cabundle(
[string
$path = NULL])
|
|
Use the Certificate Authority bundle included with this API
Most versions of PHP with cURL support include an outdated Certificate Authority (CA) bundle (the file that lists all valid certificate signing authorities). The SSL certificates used by the Cloud Files storage system are perfectly valid but have been created/signed by a CA not listed in these outdated cURL distributions.
As a work-around, we've included an updated CA bundle obtained directly from cURL's web site (http://curl.haxx.se). You can direct the API to use this CA bundle by calling this method prior to making any remote calls. The best place to use this method is right after the CF_Authentication instance has been instantiated.
You can specify your own CA bundle by passing in the full pathname to the bundle. You can use the included CA bundle by leaving the argument blank.
Parameters: