/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* dmex
*
*/
namespace CustomBuildTool
{
///
/// Extensions for creating ECDsa from a Key Vault client.
///
public static class ECDsaFactory
{
///
/// Creates an ECDsa object
///
///
///
///
///
public static ECDsa Create(string AccessToken, Uri KeyId, X509Certificate2 PublicCertificate)
{
ArgumentNullException.ThrowIfNull(AccessToken);
ArgumentNullException.ThrowIfNull(KeyId);
ArgumentNullException.ThrowIfNull(PublicCertificate);
return new ECDsaKeyVault(new KeyVaultContext(AccessToken, KeyId, PublicCertificate));
}
}
}