17 lines
464 B
C#
17 lines
464 B
C#
using Microsoft.IdentityModel.Tokens;
|
|
|
|
namespace DigitalData.Core.Abstractions.Security
|
|
{
|
|
public interface IAsymmetricPrivateKey : IAsymmetricKey
|
|
{
|
|
public bool IsEncrypted { get; init; }
|
|
|
|
IAsymmetricPublicKey PublicKey { get; }
|
|
|
|
byte[] Decrypt(byte[] data);
|
|
|
|
string Decrypt(string data);
|
|
|
|
SigningCredentials CreateSigningCredentials(string algorithm = SecurityAlgorithms.RsaSha256, string? digest = null);
|
|
}
|
|
} |