// Copyright (c) Umbraco. // See LICENSE for more details. using System.ComponentModel; namespace Umbraco.Cms.Core.Configuration.Models; /// /// Typed configuration options for imaging settings. /// [UmbracoOptions(Constants.Configuration.ConfigImaging)] public class ImagingSettings { /// /// Gets or sets a value for the Hash-based Message Authentication Code (HMAC) secret key for request authentication. /// /// /// Setting or updating this value will cause all existing generated URLs to become invalid and return a 400 Bad Request response code. /// When set, the maximum resize settings are not used/validated anymore, because you can only request URLs with a valid HMAC token anyway. /// public byte[] HMACSecretKey { get; set; } = Array.Empty(); /// /// Gets or sets a value for imaging cache settings. /// public ImagingCacheSettings Cache { get; set; } = new(); /// /// Gets or sets a value for imaging resize settings. /// public ImagingResizeSettings Resize { get; set; } = new(); }