AccountSasBuilder
AccountSasBuilder is used to generate an account level
Shared Access Signature (SAS) for Azure Storage services.
For more information, see
Create an account SAS.
Optional. Encryption scope to use when sending requests authorized with this SAS URI.
The time at which the shared access signature becomes invalid.
This field must be omitted if it has been specified in an
associated stored access policy.
Specifies an IP address or a range of IP addresses from which to
accept requests. If the IP address from which the request
originates does not match the IP address or address range
specified on the SAS token, the request is not authenticated.
When specifying a range of IP addresses, note that the range is
inclusive.
The permissions associated with the shared access signature. The
user is restricted to operations allowed by the permissions. The
AccountSasPermissions type can be used to create the
permissions string.
The optional signed protocol field specifies the protocol
permitted for a request made with the SAS. Possible values are
HttpsAndHttp,
Https, and
None.
The resource types associated with the shared access signature. The
user is restricted to operations on the specified resources.
The services associated with the shared access signature. The
user is restricted to operations with the specified services.
Optionally specify the time at which the shared access signature
becomes valid. If omitted when DateTimeOffset.MinValue is used,
start time for this call is assumed to be the time when the
storage service receives the request.
The storage service version to use to authenticate requests made
with this shared access signature, and the service version to use
when handling requests made with this shared access signature.
public AccountSasBuilder()
Initializes a new instance of the AccountSasBuilder
class.
public AccountSasBuilder(AccountSasPermissions permissions, DateTimeOffset expiresOn, AccountSasServices services, AccountSasResourceTypes resourceTypes)
Initializes a new instance of the AccountSasBuilder
class to create a Blob Container Service Sas.
Sets the permissions for an account SAS.
Sets the permissions for the SAS using a raw permissions string.
Use an account's StorageSharedKeyCredential to sign this
shared access signature values to produce the proper SAS query
parameters for authenticating requests.
public SasQueryParameters ToSasQueryParameters(StorageSharedKeyCredential sharedKeyCredential, out string stringToSign)
Use an account's StorageSharedKeyCredential to sign this
shared access signature values to produce the proper SAS query
parameters for authenticating requests.