feat(ISecurityIdentifier): Implementiert in IRSACryptographer und TokenDescription
This commit is contained in:
parent
9953bbd2ef
commit
ec126be2aa
@ -2,14 +2,14 @@
|
||||
|
||||
namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
public interface IRSACryptographer
|
||||
public interface IRSACryptographer : ISecurityIdentifier
|
||||
{
|
||||
public string Pem { get; init; }
|
||||
|
||||
public RSAEncryptionPadding Padding { get; init; }
|
||||
|
||||
public string Issuer { get; init; }
|
||||
public new string Issuer { get; init; }
|
||||
|
||||
public string Audience { get; init; }
|
||||
public new string Audience { get; init; }
|
||||
}
|
||||
}
|
||||
@ -1,16 +1,17 @@
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using DigitalData.Core.Abstractions.Security;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace DigitalData.Core.Security.Config
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains some information which used to create a security token. Designed to abstract <see cref="SecurityTokenDescriptor"/>
|
||||
/// </summary>
|
||||
public class TokenDescription
|
||||
public class TokenDescription : ISecurityIdentifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the 'audience' claim.
|
||||
/// </summary>
|
||||
public string Audience { get; set; }
|
||||
public new string Audience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Defines the compression algorithm that will be used to compress the JWT token payload.
|
||||
@ -30,7 +31,7 @@ namespace DigitalData.Core.Security.Config
|
||||
/// <summary>
|
||||
/// Gets or sets the issuer of this <see cref="ITokenDescription"/>.
|
||||
/// </summary>
|
||||
public string Issuer { get; set; }
|
||||
public new string Issuer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time the security token was issued. This value should be in UTC.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user