\QiniuAuth

Summary

Methods
Properties
Constants
__construct()
getAccessKey()
sign()
signWithData()
signRequest()
verifyCallback()
privateDownloadUrl()
uploadToken()
authorization()
authorizationV2()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
copyPolicy()
$accessKey
$secretKey
$policyFields
N/A

Properties

$accessKey

$accessKey : 

Type

$secretKey

$secretKey : 

Type

$policyFields

$policyFields : 

上传策略,参数规格详见 http://developer.qiniu.com/docs/v6/api/reference/security/put-policy.html

Type

Methods

__construct()

__construct(  $accessKey,   $secretKey) 

Parameters

$accessKey
$secretKey

getAccessKey()

getAccessKey() 

sign()

sign(  $data) 

Parameters

$data

signWithData()

signWithData(  $data) 

Parameters

$data

signRequest()

signRequest(  $urlString,   $body,   $contentType = null) 

Parameters

$urlString
$body
$contentType

verifyCallback()

verifyCallback(  $contentType,   $originAuthorization,   $url,   $body) 

Parameters

$contentType
$originAuthorization
$url
$body

privateDownloadUrl()

privateDownloadUrl(  $baseUrl,   $expires = 3600) 

Parameters

$baseUrl
$expires

uploadToken()

uploadToken(  $bucket,   $key = null,   $expires = 3600,   $policy = null,   $strictPolicy = true) 

Parameters

$bucket
$key
$expires
$policy
$strictPolicy

authorization()

authorization(  $url,   $body = null,   $contentType = null) 

Parameters

$url
$body
$contentType

authorizationV2()

authorizationV2(  $url,   $method,   $body = null,   $contentType = null) 

Parameters

$url
$method
$body
$contentType

copyPolicy()

copyPolicy(  $policy,   $originPolicy,   $strictPolicy) 

Parameters

$policy
$originPolicy
$strictPolicy