From 50c42e9cdd941c3473ea989dd5ca5fa287e293c5 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 20 Dec 2024 14:42:07 +0100 Subject: [PATCH] =?UTF-8?q?rename(ISecurityIdentifier):=20Umbenannt=20in?= =?UTF-8?q?=20IUniqueSecurityContext=20und=20Kommentare=20zur=20Dokumentat?= =?UTF-8?q?ion=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Security/IRSACryptographer.cs | 2 +- .../Security/ISecurityIdentifier.cs | 9 ------- .../Security/IUniqueSecurityContext.cs | 24 +++++++++++++++++++ .../Config/TokenDescription.cs | 2 +- 4 files changed, 26 insertions(+), 11 deletions(-) delete mode 100644 DigitalData.Core.Abstractions/Security/ISecurityIdentifier.cs create mode 100644 DigitalData.Core.Abstractions/Security/IUniqueSecurityContext.cs diff --git a/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs b/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs index 966081f..e684eb4 100644 --- a/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs +++ b/DigitalData.Core.Abstractions/Security/IRSACryptographer.cs @@ -2,7 +2,7 @@ namespace DigitalData.Core.Abstractions.Security { - public interface IRSACryptographer : ISecurityIdentifier + public interface IRSACryptographer : IUniqueSecurityContext { public string Pem { get; init; } diff --git a/DigitalData.Core.Abstractions/Security/ISecurityIdentifier.cs b/DigitalData.Core.Abstractions/Security/ISecurityIdentifier.cs deleted file mode 100644 index dd17ec9..0000000 --- a/DigitalData.Core.Abstractions/Security/ISecurityIdentifier.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace DigitalData.Core.Abstractions.Security -{ - public interface ISecurityIdentifier - { - public string Issuer { get; } - - public string Audience { get; } - } -} \ No newline at end of file diff --git a/DigitalData.Core.Abstractions/Security/IUniqueSecurityContext.cs b/DigitalData.Core.Abstractions/Security/IUniqueSecurityContext.cs new file mode 100644 index 0000000..6f8869d --- /dev/null +++ b/DigitalData.Core.Abstractions/Security/IUniqueSecurityContext.cs @@ -0,0 +1,24 @@ +namespace DigitalData.Core.Abstractions.Security +{ + /// + /// Represents a unique security context that identifies an issuer and an audience. + /// + public interface IUniqueSecurityContext + { + /// + /// Gets the issuer identifier for this security context. + /// + /// + /// The issuer typically represents the entity that issues a token or a cryptographic key. + /// + string Issuer { get; } + + /// + /// Gets the audience identifier for this security context. + /// + /// + /// The audience typically represents the intended recipient or target of a token or cryptographic operation. + /// + string Audience { get; } + } +} \ No newline at end of file diff --git a/DigitalData.Core.Security/Config/TokenDescription.cs b/DigitalData.Core.Security/Config/TokenDescription.cs index 57ea58d..e326401 100644 --- a/DigitalData.Core.Security/Config/TokenDescription.cs +++ b/DigitalData.Core.Security/Config/TokenDescription.cs @@ -6,7 +6,7 @@ namespace DigitalData.Core.Security.Config /// /// Contains some information which used to create a security token. Designed to abstract /// - public class TokenDescription : ISecurityIdentifier + public class TokenDescription : IUniqueSecurityContext { /// /// Gets or sets the value of the 'audience' claim.