/// <summary>
        /// Sets the permissions for the SAS using a raw permissions string.
        /// </summary>
        /// <param name="rawPermissions">
        /// Raw permissions string for the SAS.
        /// </param>
        /// <param name="normalize">
        /// If the permissions should be validated and correctly ordered.
        /// </param>
        public void SetPermissions(
            string rawPermissions,
            bool normalize = default)
        {
            if (normalize)
            {
                rawPermissions = SasExtensions.ValidateAndSanitizeRawPermissions(
                    permissions: rawPermissions,
                    validPermissionsInOrder: s_validPermissionsInOrder);
            }

            SetPermissions(rawPermissions);
        }
예제 #2
0
 /// <summary>
 /// Sets the permissions for the SAS using a raw permissions string.
 /// </summary>
 /// <param name="rawPermissions">Raw permissions string for the SAS.</param>
 public void SetPermissions(string rawPermissions)
 {
     Permissions = SasExtensions.ValidateAndSanitizeRawPermissions(
         permissions: rawPermissions,
         validPermissionsInOrder: s_validPermissionsInOrder);
 }