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.