Files
2025-12-11 11:39:02 +08:00

42 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (C) Alibaba Cloud Computing
* All rights reserved.
*
* 版权所有 C阿里云计算有限公司
*/
using System;
namespace Aliyun.Api.LOG.Common.Authentication
{
/// <summary>
/// Represents the credentials used to access Aliyun Open Services.
/// </summary>
internal class ServiceCredentials
{
/// <summary>
/// Gets the access ID.
/// </summary>
public string AccessId { get; private set; }
/// <summary>
/// Gets the access key.
/// </summary>
public string AccessKey { get; private set; }
/// <summary>
/// Initialize an new instance of <see cref="ServiceCredentials"/>.
/// </summary>
/// <param name="accessId">The access ID.</param>
/// <param name="accessKey">The access key.</param>
public ServiceCredentials(string accessId, string accessKey)
{
if (string.IsNullOrEmpty(accessId))
throw new ArgumentException(Aliyun.Api.LOG.Properties.Resources.ExceptionIfArgumentStringIsNullOrEmpty, "accessId");
AccessId = accessId;
AccessKey = accessKey;
}
}
}