PHP Class Qiniu\Auth

Show file Open project: qiniu/php-sdk Class Usage Examples

Public Methods

Method Description
__construct ( $accessKey, $secretKey )
authorization ( $url, $body = null, $contentType = null )
getAccessKey ( )
privateDownloadUrl ( $baseUrl, $expires = 3600 )
sign ( $data )
signRequest ( $urlString, $body, $contentType = null )
signWithData ( $data )
uploadToken ( $bucket, $key = null, $expires = 3600, $policy = null, $strictPolicy = true, Zone $zone = null )
verifyCallback ( $contentType, $originAuthorization, $url, $body )

Private Methods

Method Description
copyPolicy ( &$policy, $originPolicy, $strictPolicy )

Method Details

__construct() public method

public __construct ( $accessKey, $secretKey )

authorization() public method

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

getAccessKey() public method

public getAccessKey ( )

privateDownloadUrl() public method

public privateDownloadUrl ( $baseUrl, $expires = 3600 )

sign() public method

public sign ( $data )

signRequest() public method

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

signWithData() public method

public signWithData ( $data )

uploadToken() public method

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

verifyCallback() public method

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