Skip to content

Make types in Microsoft.AspNetCore.DataProtection.KeyManagement.Internal internal #54707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// <summary>
/// Wraps both a keyring and its expiration policy.
/// </summary>
public sealed class CacheableKeyRing
internal sealed class CacheableKeyRing
{
private readonly CancellationToken _expirationToken;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public struct DefaultKeyResolution
internal struct DefaultKeyResolution
{
/// <summary>
/// The default key, may be null if no key is a good default candidate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public interface ICacheableKeyRingProvider
internal interface ICacheableKeyRingProvider
{
/// <summary>
/// This API supports infrastructure and is not intended to be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// <summary>
/// Implements policy for resolving the default key from a candidate keyring.
/// </summary>
public interface IDefaultKeyResolver
internal interface IDefaultKeyResolver
{
/// <summary>
/// Locates the default key from the keyring.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public interface IInternalXmlKeyManager
internal interface IInternalXmlKeyManager
{
/// <summary>
/// This API supports infrastructure and is not intended to be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// <summary>
/// The basic interface for accessing a read-only keyring.
/// </summary>
public interface IKeyRing
internal interface IKeyRing
{
/// <summary>
/// The authenticated encryptor that shall be used for new encryption operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal;
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public interface IKeyRingProvider
internal interface IKeyRingProvider
{
/// <summary>
/// This API supports infrastructure and is not intended to be used
Expand Down
20 changes: 20 additions & 0 deletions src/DataProtection/DataProtection/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
#nullable enable
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.CacheableKeyRing
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution.DefaultKey -> Microsoft.AspNetCore.DataProtection.KeyManagement.IKey?
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution.DefaultKeyResolution() -> void
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution.FallbackKey -> Microsoft.AspNetCore.DataProtection.KeyManagement.IKey?
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution.ShouldGenerateNewKey -> bool
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.ICacheableKeyRingProvider
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.ICacheableKeyRingProvider.GetCacheableKeyRing(System.DateTimeOffset now) -> Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.CacheableKeyRing!
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IDefaultKeyResolver
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IDefaultKeyResolver.ResolveDefaultKeyPolicy(System.DateTimeOffset now, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.DataProtection.KeyManagement.IKey!>! allKeys) -> Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.CreateNewKey(System.Guid keyId, System.DateTimeOffset creationDate, System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate) -> Microsoft.AspNetCore.DataProtection.KeyManagement.IKey!
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(System.Xml.Linq.XElement! keyElement) -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor!
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.RevokeSingleKey(System.Guid keyId, System.DateTimeOffset revocationDate, string? reason) -> void
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing.DefaultAuthenticatedEncryptor.get -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor?
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing.DefaultKeyId.get -> System.Guid
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing.GetAuthenticatedEncryptorByKeyId(System.Guid keyId, out bool isRevoked) -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor?
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRingProvider
*REMOVED*Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRingProvider.GetCurrentKeyRing() -> Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing!