rename(ISecurityIdentifier): Umbenannt in IUniqueSecurityContext und Kommentare zur Dokumentation hinzugefügt.

This commit is contained in:
Developer 02 2024-12-20 14:42:07 +01:00
parent ec126be2aa
commit 50c42e9cdd
4 changed files with 26 additions and 11 deletions

View File

@ -2,7 +2,7 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSACryptographer : ISecurityIdentifier
public interface IRSACryptographer : IUniqueSecurityContext
{
public string Pem { get; init; }

View File

@ -1,9 +0,0 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface ISecurityIdentifier
{
public string Issuer { get; }
public string Audience { get; }
}
}

View File

@ -0,0 +1,24 @@
namespace DigitalData.Core.Abstractions.Security
{
/// <summary>
/// Represents a unique security context that identifies an issuer and an audience.
/// </summary>
public interface IUniqueSecurityContext
{
/// <summary>
/// Gets the issuer identifier for this security context.
/// </summary>
/// <remarks>
/// The issuer typically represents the entity that issues a token or a cryptographic key.
/// </remarks>
string Issuer { get; }
/// <summary>
/// Gets the audience identifier for this security context.
/// </summary>
/// <remarks>
/// The audience typically represents the intended recipient or target of a token or cryptographic operation.
/// </remarks>
string Audience { get; }
}
}

View File

@ -6,7 +6,7 @@ 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 : ISecurityIdentifier
public class TokenDescription : IUniqueSecurityContext
{
/// <summary>
/// Gets or sets the value of the 'audience' claim.