Azure OSS for PHP API Reference

BlobSasBuilder
in package

FinalYes

Builds an Azure Blob Storage service shared access signature (SAS).

Table of Contents

Properties

$blobName  : string|null
$cacheControl  : string|null
$containerName  : string
$contentDisposition  : string|null
$contentEncoding  : string|null
$contentLanguage  : string|null
$contentType  : string|null
$encryptionScope  : string|null
$expiresOn  : DateTimeInterface
$identifier  : string|null
$ipRange  : SasIpRange|null
$permissions  : string|null
$protocol  : SasProtocol|null
$snapshotTime  : DateTimeInterface|null
$startsOn  : DateTimeInterface|null
$version  : string

Methods

build()  : string
Signs and returns the service SAS query string without a leading question mark.
new()  : self
Creates an empty blob service SAS builder.
setBlobName()  : BlobSasBuilder
Sets the blob name, or omits it to create a container SAS.
setCacheControl()  : self
Overrides the Cache-Control response header for requests using the SAS.
setContainerName()  : BlobSasBuilder
Sets the container name included in the canonical signed resource.
setContentDisposition()  : self
Overrides the Content-Disposition response header for requests using the SAS.
setContentEncoding()  : self
Overrides the Content-Encoding response header for requests using the SAS.
setContentLanguage()  : self
Overrides the Content-Language response header for requests using the SAS.
setContentType()  : self
Overrides the Content-Type response header for requests using the SAS.
setEncryptionScope()  : self
Sets the encryption scope required for requests authorized by the SAS.
setExpiresOn()  : self
Sets the instant at which the SAS expires.
setIdentifier()  : self
Associates the SAS with a stored access policy identifier.
setIPRange()  : self
Restricts requests to the specified source IP address or range.
setPermissions()  : self
Sets the operations permitted by the SAS.
setProtocol()  : self
Restricts requests to HTTPS, or permits both HTTPS and HTTP.
setSnapshotTime()  : self
Sets the snapshot timestamp for a snapshot-specific SAS.
setStartsOn()  : self
Sets the earliest instant at which the SAS is valid.
setVersion()  : self
Sets the Storage service version signed by the SAS.
getCanonicalizedResource()  : string

Properties

$contentDisposition

private string|null $contentDisposition = null

$snapshotTime

private DateTimeInterface|null $snapshotTime = null

Methods

new()

Creates an empty blob service SAS builder.

public static new() : self
Return values
self

setCacheControl()

Overrides the Cache-Control response header for requests using the SAS.

public setCacheControl(string $value) : self
Parameters
$value : string
Return values
self

setContentDisposition()

Overrides the Content-Disposition response header for requests using the SAS.

public setContentDisposition(string $value) : self
Parameters
$value : string
Return values
self

setContentEncoding()

Overrides the Content-Encoding response header for requests using the SAS.

public setContentEncoding(string $value) : self
Parameters
$value : string
Return values
self

setContentLanguage()

Overrides the Content-Language response header for requests using the SAS.

public setContentLanguage(string $value) : self
Parameters
$value : string
Return values
self

setContentType()

Overrides the Content-Type response header for requests using the SAS.

public setContentType(string $value) : self
Parameters
$value : string
Return values
self

setEncryptionScope()

Sets the encryption scope required for requests authorized by the SAS.

public setEncryptionScope(string $value) : self
Parameters
$value : string
Return values
self

setExpiresOn()

Sets the instant at which the SAS expires.

public setExpiresOn(DateTimeInterface $value) : self
Parameters
$value : DateTimeInterface
Return values
self

setIdentifier()

Associates the SAS with a stored access policy identifier.

public setIdentifier(string $value) : self
Parameters
$value : string
Return values
self

setIPRange()

Restricts requests to the specified source IP address or range.

public setIPRange(SasIpRange $value) : self
Parameters
$value : SasIpRange
Return values
self

setSnapshotTime()

Sets the snapshot timestamp for a snapshot-specific SAS.

public setSnapshotTime(DateTimeInterface $value) : self
Parameters
$value : DateTimeInterface
Return values
self

setStartsOn()

Sets the earliest instant at which the SAS is valid.

public setStartsOn(DateTimeInterface $value) : self
Parameters
$value : DateTimeInterface
Return values
self

setVersion()

Sets the Storage service version signed by the SAS.

public setVersion(string $value) : self
Parameters
$value : string
Return values
self

getCanonicalizedResource()

private getCanonicalizedResource(string $accountName) : string
Parameters
$accountName : string
Return values
string
On this page

Search results