17 lines
401 B
C#
17 lines
401 B
C#
|
|
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();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|