BlobSasBuilder
in package
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
$blobName
private
string|null
$blobName
= null
$cacheControl
private
string|null
$cacheControl
= null
$containerName
private
string
$containerName
$contentDisposition
private
string|null
$contentDisposition
= null
$contentEncoding
private
string|null
$contentEncoding
= null
$contentLanguage
private
string|null
$contentLanguage
= null
$contentType
private
string|null
$contentType
= null
$encryptionScope
private
string|null
$encryptionScope
= null
$expiresOn
private
DateTimeInterface
$expiresOn
$identifier
private
string|null
$identifier
= null
$ipRange
private
SasIpRange|null
$ipRange
= null
$permissions
private
string|null
$permissions
= null
$protocol
private
SasProtocol|null
$protocol
= null
$snapshotTime
private
DateTimeInterface|null
$snapshotTime
= null
$startsOn
private
DateTimeInterface|null
$startsOn
= null
$version
private
string
$version
Methods
build()
Signs and returns the service SAS query string without a leading question mark.
public
build(StorageSharedKeyCredential $sharedKeyCredential) : string
Parameters
- $sharedKeyCredential : StorageSharedKeyCredential
Return values
stringnew()
Creates an empty blob service SAS builder.
public
static new() : self
Return values
selfsetBlobName()
Sets the blob name, or omits it to create a container SAS.
public
setBlobName(string $value) : BlobSasBuilder
Parameters
- $value : string
Return values
BlobSasBuildersetCacheControl()
Overrides the Cache-Control response header for requests using the SAS.
public
setCacheControl(string $value) : self
Parameters
- $value : string
Return values
selfsetContainerName()
Sets the container name included in the canonical signed resource.
public
setContainerName(string $value) : BlobSasBuilder
Parameters
- $value : string
Return values
BlobSasBuildersetContentDisposition()
Overrides the Content-Disposition response header for requests using the SAS.
public
setContentDisposition(string $value) : self
Parameters
- $value : string
Return values
selfsetContentEncoding()
Overrides the Content-Encoding response header for requests using the SAS.
public
setContentEncoding(string $value) : self
Parameters
- $value : string
Return values
selfsetContentLanguage()
Overrides the Content-Language response header for requests using the SAS.
public
setContentLanguage(string $value) : self
Parameters
- $value : string
Return values
selfsetContentType()
Overrides the Content-Type response header for requests using the SAS.
public
setContentType(string $value) : self
Parameters
- $value : string
Return values
selfsetEncryptionScope()
Sets the encryption scope required for requests authorized by the SAS.
public
setEncryptionScope(string $value) : self
Parameters
- $value : string
Return values
selfsetExpiresOn()
Sets the instant at which the SAS expires.
public
setExpiresOn(DateTimeInterface $value) : self
Parameters
- $value : DateTimeInterface
Return values
selfsetIdentifier()
Associates the SAS with a stored access policy identifier.
public
setIdentifier(string $value) : self
Parameters
- $value : string
Return values
selfsetIPRange()
Restricts requests to the specified source IP address or range.
public
setIPRange(SasIpRange $value) : self
Parameters
- $value : SasIpRange
Return values
selfsetPermissions()
Sets the operations permitted by the SAS.
public
setPermissions(string|BlobSasPermissions|BlobContainerSasPermissions $value) : self
Parameters
- $value : string|BlobSasPermissions|BlobContainerSasPermissions
Return values
selfsetProtocol()
Restricts requests to HTTPS, or permits both HTTPS and HTTP.
public
setProtocol(SasProtocol $value) : self
Parameters
- $value : SasProtocol
Return values
selfsetSnapshotTime()
Sets the snapshot timestamp for a snapshot-specific SAS.
public
setSnapshotTime(DateTimeInterface $value) : self
Parameters
- $value : DateTimeInterface
Return values
selfsetStartsOn()
Sets the earliest instant at which the SAS is valid.
public
setStartsOn(DateTimeInterface $value) : self
Parameters
- $value : DateTimeInterface
Return values
selfsetVersion()
Sets the Storage service version signed by the SAS.
public
setVersion(string $value) : self
Parameters
- $value : string
Return values
selfgetCanonicalizedResource()
private
getCanonicalizedResource(string $accountName) : string
Parameters
- $accountName : string