Class Security
Provides security-related functionality for Azure Storage, including SAS token generation.
public class Security
- Inheritance
-
Security
- Inherited Members
Methods
GetAccountSignedToken(string, string, AccessPermissions)
Generates a signed token for accessing Azure Storage account resources. The token is valid for 24 hours and uses HTTPS protocol.
public static string GetAccountSignedToken(string accountName, string accountKey, AccessPermissions permissions = AccessPermissions.Read)
Parameters
accountNamestringThe name of the Azure Storage account.
accountKeystringThe access key for the Azure Storage account.
permissionsAccessPermissionsThe access permissions to grant. Defaults to Read.
Returns
- string
A signed token string that can be appended to storage URLs for authenticated access.