using eSuite.Core.Security;

namespace eSuite.API.security;

/// <summary>
/// Used to quickly add support for security permissions to a method.
/// </summary>
[AttributeUsage(AttributeTargets.Method )]
public class AccessKeyAttribute : Attribute
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="securityAccess"></param>
    public AccessKeyAttribute(SecurityAccess securityAccess)
    {
        SecurityAccess = securityAccess;
    }

    /// <summary>
    /// 
    /// </summary>
    public SecurityAccess SecurityAccess { get; }
}