Overview

Classes

  • Dropbox\AppInfo
  • Dropbox\ArrayEntryStore
  • Dropbox\AuthBase
  • Dropbox\AuthInfo
  • Dropbox\Client
  • Dropbox\OAuth1AccessToken
  • Dropbox\OAuth1Upgrader
  • Dropbox\Path
  • Dropbox\RootCertificates
  • Dropbox\Security
  • Dropbox\SSLTester
  • Dropbox\Util
  • Dropbox\WebAuth
  • Dropbox\WebAuthBase
  • Dropbox\WebAuthNoRedirect
  • Dropbox\WriteMode

Interfaces

  • Dropbox\ValueStore

Exceptions

  • Dropbox\AppInfoLoadException
  • Dropbox\AuthInfoLoadException
  • Dropbox\DeserializeException
  • Dropbox\Exception
  • Dropbox\Exception_BadRequest
  • Dropbox\Exception_BadResponse
  • Dropbox\Exception_BadResponseCode
  • Dropbox\Exception_InvalidAccessToken
  • Dropbox\Exception_NetworkIO
  • Dropbox\Exception_OverQuota
  • Dropbox\Exception_ProtocolError
  • Dropbox\Exception_RetryLater
  • Dropbox\Exception_ServerError
  • Dropbox\HostLoadException
  • Dropbox\StreamReadException
  • Dropbox\WebAuthException_BadRequest
  • Dropbox\WebAuthException_BadState
  • Dropbox\WebAuthException_Csrf
  • Dropbox\WebAuthException_NotApproved
  • Dropbox\WebAuthException_Provider
  • Overview
  • Class

Class Security

Helper functions for security-related things.

Namespace: Dropbox
Located at Dropbox/Security.php
Methods summary
public static boolean
# stringEquals( string $a, string $b )

A string equality function that compares strings in a way that isn't suceptible to timing attacks. An attacker can figure out the length of the string, but not the string's value.

A string equality function that compares strings in a way that isn't suceptible to timing attacks. An attacker can figure out the length of the string, but not the string's value.

Use this when comparing two strings where: - one string could be influenced by an attacker - the other string contains data an attacker shouldn't know

Parameters

$a
$b

Returns

boolean
public static string
# getRandomBytes( integer $numBytes )

Returns cryptographically strong secure random bytes (as a PHP string).

Returns cryptographically strong secure random bytes (as a PHP string).

Parameters

$numBytes
The number of bytes of random data to return.

Returns

string
Dropbox SDK for PHP API documentation generated by ApiGen