IdentityShroud/IdentityShroud.Core/Security/Keys/KeyProviderFactory.cs

17 lines
401 B
C#
Raw Normal View History

using IdentityShroud.Core.Security.Keys.Rsa;
namespace IdentityShroud.Core.Security.Keys;
public class KeyProviderFactory : IKeyProviderFactory
{
public IKeyProvider CreateProvider(string keyType)
{
switch (keyType)
{
case "RSA":
return new RsaProvider();
default:
throw new NotImplementedException();
}
}
}