20 lines
298 B
C#
20 lines
298 B
C#
|
|
using IdentityShroud.Core.Messages;
|
||
|
|
|
||
|
|
namespace IdentityShroud.Core.Security.Keys;
|
||
|
|
|
||
|
|
public abstract class KeyPolicy
|
||
|
|
{
|
||
|
|
public abstract string KeyType { get; }
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public interface IKeyProvider
|
||
|
|
{
|
||
|
|
byte[] CreateKey(KeyPolicy policy);
|
||
|
|
|
||
|
|
void SetJwkParameters(byte[] key, JsonWebKey jwk);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|