Skip to content

Commit 4a5f2d1

Browse files
authored
Make pubinternal types in Antiforgery internal (#8340)
* Make pubinternal types in Antiforgery internal Adresses #8308
1 parent 8250442 commit 4a5f2d1

33 files changed

+81
-208
lines changed

src/Antiforgery/build.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@ECHO OFF
2+
SET RepoRoot=%~dp0..\..
3+
%RepoRoot%\build.cmd -projects %~dp0\**\*.*proj %*

src/Antiforgery/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
repo_root="$DIR/../.."
7+
"$repo_root/build.sh" --projects "$DIR/**/*.*proj" "$@"

src/Antiforgery/ref/Microsoft.AspNetCore.Antiforgery.netcoreapp3.0.cs

Lines changed: 0 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -39,149 +39,6 @@ public partial interface IAntiforgeryAdditionalDataProvider
3939
bool ValidateAdditionalData(Microsoft.AspNetCore.Http.HttpContext context, string additionalData);
4040
}
4141
}
42-
namespace Microsoft.AspNetCore.Antiforgery.Internal
43-
{
44-
public partial class AntiforgeryFeature : Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryFeature
45-
{
46-
public AntiforgeryFeature() { }
47-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken CookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
48-
public bool HaveDeserializedCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
49-
public bool HaveDeserializedRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
50-
public bool HaveGeneratedNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
51-
public bool HaveStoredNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
52-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken NewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
53-
public string NewCookieTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
54-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken NewRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
55-
public string NewRequestTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
56-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken RequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
57-
}
58-
public partial class AntiforgeryOptionsSetup : Microsoft.Extensions.Options.ConfigureOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions>
59-
{
60-
public AntiforgeryOptionsSetup(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> dataProtectionOptionsAccessor) : base (default(System.Action<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions>)) { }
61-
public static void ConfigureOptions(Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions options, Microsoft.AspNetCore.DataProtection.DataProtectionOptions dataProtectionOptions) { }
62-
}
63-
public partial class AntiforgerySerializationContext
64-
{
65-
public AntiforgerySerializationContext() { }
66-
public System.IO.BinaryReader Reader { get { throw null; } }
67-
public System.Security.Cryptography.SHA256 Sha256 { get { throw null; } }
68-
public System.IO.MemoryStream Stream { get { throw null; } }
69-
public System.IO.BinaryWriter Writer { get { throw null; } }
70-
public char[] GetChars(int count) { throw null; }
71-
public void Reset() { }
72-
}
73-
public partial class AntiforgerySerializationContextPooledObjectPolicy : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<Microsoft.AspNetCore.Antiforgery.Internal.AntiforgerySerializationContext>
74-
{
75-
public AntiforgerySerializationContextPooledObjectPolicy() { }
76-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgerySerializationContext Create() { throw null; }
77-
public bool Return(Microsoft.AspNetCore.Antiforgery.Internal.AntiforgerySerializationContext obj) { throw null; }
78-
}
79-
public sealed partial class AntiforgeryToken
80-
{
81-
public AntiforgeryToken() { }
82-
public string AdditionalData { get { throw null; } set { } }
83-
public Microsoft.AspNetCore.Antiforgery.Internal.BinaryBlob ClaimUid { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
84-
public bool IsCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
85-
public Microsoft.AspNetCore.Antiforgery.Internal.BinaryBlob SecurityToken { get { throw null; } set { } }
86-
public string Username { get { throw null; } set { } }
87-
}
88-
[System.Diagnostics.DebuggerDisplayAttribute("{DebuggerString}")]
89-
public sealed partial class BinaryBlob : System.IEquatable<Microsoft.AspNetCore.Antiforgery.Internal.BinaryBlob>
90-
{
91-
public BinaryBlob(int bitLength) { }
92-
public BinaryBlob(int bitLength, byte[] data) { }
93-
public int BitLength { get { throw null; } }
94-
public bool Equals(Microsoft.AspNetCore.Antiforgery.Internal.BinaryBlob other) { throw null; }
95-
public override bool Equals(object obj) { throw null; }
96-
public byte[] GetData() { throw null; }
97-
public override int GetHashCode() { throw null; }
98-
}
99-
public static partial class CryptographyAlgorithms
100-
{
101-
public static System.Security.Cryptography.SHA256 CreateSHA256() { throw null; }
102-
}
103-
public partial class DefaultAntiforgery : Microsoft.AspNetCore.Antiforgery.IAntiforgery
104-
{
105-
public DefaultAntiforgery(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> antiforgeryOptionsAccessor, Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenGenerator tokenGenerator, Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenSerializer tokenSerializer, Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenStore tokenStore, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { }
106-
public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
107-
public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
108-
[System.Diagnostics.DebuggerStepThroughAttribute]
109-
public System.Threading.Tasks.Task<bool> IsRequestValidAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
110-
public void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext) { }
111-
protected virtual void SetDoNotCacheHeaders(Microsoft.AspNetCore.Http.HttpContext httpContext) { }
112-
[System.Diagnostics.DebuggerStepThroughAttribute]
113-
public System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
114-
}
115-
public partial class DefaultAntiforgeryAdditionalDataProvider : Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProvider
116-
{
117-
public DefaultAntiforgeryAdditionalDataProvider() { }
118-
public virtual string GetAdditionalData(Microsoft.AspNetCore.Http.HttpContext context) { throw null; }
119-
public virtual bool ValidateAdditionalData(Microsoft.AspNetCore.Http.HttpContext context, string additionalData) { throw null; }
120-
}
121-
public partial class DefaultAntiforgeryTokenGenerator : Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenGenerator
122-
{
123-
public DefaultAntiforgeryTokenGenerator(Microsoft.AspNetCore.Antiforgery.Internal.IClaimUidExtractor claimUidExtractor, Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProvider additionalDataProvider) { }
124-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken GenerateCookieToken() { throw null; }
125-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken) { throw null; }
126-
public bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken) { throw null; }
127-
public bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken requestToken, out string message) { throw null; }
128-
}
129-
public partial class DefaultAntiforgeryTokenSerializer : Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenSerializer
130-
{
131-
public DefaultAntiforgeryTokenSerializer(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.Internal.AntiforgerySerializationContext> pool) { }
132-
public Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken Deserialize(string serializedToken) { throw null; }
133-
public string Serialize(Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken token) { throw null; }
134-
}
135-
public partial class DefaultAntiforgeryTokenStore : Microsoft.AspNetCore.Antiforgery.Internal.IAntiforgeryTokenStore
136-
{
137-
public DefaultAntiforgeryTokenStore(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> optionsAccessor) { }
138-
public string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
139-
[System.Diagnostics.DebuggerStepThroughAttribute]
140-
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; }
141-
public void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token) { }
142-
}
143-
public partial class DefaultClaimUidExtractor : Microsoft.AspNetCore.Antiforgery.Internal.IClaimUidExtractor
144-
{
145-
public DefaultClaimUidExtractor(Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.Internal.AntiforgerySerializationContext> pool) { }
146-
public string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal) { throw null; }
147-
public static System.Collections.Generic.IList<string> GetUniqueIdentifierParameters(System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> claimsIdentities) { throw null; }
148-
}
149-
public partial interface IAntiforgeryFeature
150-
{
151-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken CookieToken { get; set; }
152-
bool HaveDeserializedCookieToken { get; set; }
153-
bool HaveDeserializedRequestToken { get; set; }
154-
bool HaveGeneratedNewCookieToken { get; set; }
155-
bool HaveStoredNewCookieToken { get; set; }
156-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken NewCookieToken { get; set; }
157-
string NewCookieTokenString { get; set; }
158-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken NewRequestToken { get; set; }
159-
string NewRequestTokenString { get; set; }
160-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken RequestToken { get; set; }
161-
}
162-
public partial interface IAntiforgeryTokenGenerator
163-
{
164-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken GenerateCookieToken();
165-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken);
166-
bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken);
167-
bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken requestToken, out string message);
168-
}
169-
public partial interface IAntiforgeryTokenSerializer
170-
{
171-
Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken Deserialize(string serializedToken);
172-
string Serialize(Microsoft.AspNetCore.Antiforgery.Internal.AntiforgeryToken token);
173-
}
174-
public partial interface IAntiforgeryTokenStore
175-
{
176-
string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext);
177-
System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext);
178-
void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token);
179-
}
180-
public partial interface IClaimUidExtractor
181-
{
182-
string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal);
183-
}
184-
}
18542
namespace Microsoft.Extensions.DependencyInjection
18643
{
18744
public static partial class AntiforgeryServiceCollectionExtensions

src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using Microsoft.AspNetCore.Antiforgery;
6-
using Microsoft.AspNetCore.Antiforgery.Internal;
76
using Microsoft.Extensions.DependencyInjection.Extensions;
87
using Microsoft.Extensions.ObjectPool;
98
using Microsoft.Extensions.Options;

src/Antiforgery/src/Internal/AntiforgeryFeature.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
namespace Microsoft.AspNetCore.Antiforgery.Internal
4+
namespace Microsoft.AspNetCore.Antiforgery
55
{
66
/// <summary>
77
/// Used to hold per-request state.
88
/// </summary>
9-
public class AntiforgeryFeature : IAntiforgeryFeature
9+
internal class AntiforgeryFeature : IAntiforgeryFeature
1010
{
1111
public bool HaveDeserializedCookieToken { get; set; }
1212

@@ -31,4 +31,4 @@ public class AntiforgeryFeature : IAntiforgeryFeature
3131
// Always false if NewCookieToken is null. Never store null cookie token or re-store cookie token from request.
3232
public bool HaveStoredNewCookieToken { get; set; }
3333
}
34-
}
34+
}

src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System;
55
using Microsoft.Extensions.Logging;
66

7-
namespace Microsoft.AspNetCore.Antiforgery.Internal
7+
namespace Microsoft.AspNetCore.Antiforgery
88
{
99
internal static class AntiforgeryLoggerExtensions
1010
{

src/Antiforgery/src/Internal/AntiforgeryOptionsSetup.cs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System;
45
using System.Linq;
56
using System.Text;
67
using Microsoft.AspNetCore.DataProtection;
78
using Microsoft.AspNetCore.WebUtilities;
89
using Microsoft.Extensions.Options;
910

10-
namespace Microsoft.AspNetCore.Antiforgery.Internal
11+
namespace Microsoft.AspNetCore.Antiforgery
1112
{
12-
public class AntiforgeryOptionsSetup : ConfigureOptions<AntiforgeryOptions>
13+
internal class AntiforgeryOptionsSetup : IConfigureOptions<AntiforgeryOptions>
1314
{
14-
public AntiforgeryOptionsSetup(IOptions<DataProtectionOptions> dataProtectionOptionsAccessor)
15-
: base((options) => ConfigureOptions(options, dataProtectionOptionsAccessor.Value))
15+
private readonly DataProtectionOptions _dataProtectionOptions;
16+
17+
public AntiforgeryOptionsSetup(IOptions<DataProtectionOptions> dataProtectionOptions)
1618
{
19+
_dataProtectionOptions = dataProtectionOptions.Value;
1720
}
1821

19-
public static void ConfigureOptions(AntiforgeryOptions options, DataProtectionOptions dataProtectionOptions)
22+
public void Configure(AntiforgeryOptions options)
2023
{
24+
if (options == null)
25+
{
26+
throw new ArgumentNullException(nameof(options));
27+
}
28+
2129
if (options.Cookie.Name == null)
2230
{
23-
var applicationId = dataProtectionOptions.ApplicationDiscriminator ?? string.Empty;
31+
var applicationId = _dataProtectionOptions.ApplicationDiscriminator ?? string.Empty;
2432
options.Cookie.Name = AntiforgeryOptions.DefaultCookiePrefix + ComputeCookieName(applicationId);
2533
}
2634
}

src/Antiforgery/src/Internal/AntiforgerySerializationContext.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.IO;
55
using System.Security.Cryptography;
66
using System.Text;
77

8-
namespace Microsoft.AspNetCore.Antiforgery.Internal
8+
namespace Microsoft.AspNetCore.Antiforgery
99
{
10-
public class AntiforgerySerializationContext
10+
internal class AntiforgerySerializationContext
1111
{
1212
// Avoid allocating 256 bytes (the default) and using 18 (the AntiforgeryToken minimum). 64 bytes is enough for
1313
// a short username or claim UID and some additional data. MemoryStream bumps capacity to 256 if exceeded.
@@ -138,4 +138,4 @@ public void Reset()
138138
}
139139
}
140140
}
141-
}
141+
}

src/Antiforgery/src/Internal/AntiforgerySerializationContextPooledObjectPolicy.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.Extensions.ObjectPool;
55

6-
namespace Microsoft.AspNetCore.Antiforgery.Internal
6+
namespace Microsoft.AspNetCore.Antiforgery
77
{
8-
public class AntiforgerySerializationContextPooledObjectPolicy
9-
: IPooledObjectPolicy<AntiforgerySerializationContext>
8+
internal class AntiforgerySerializationContextPooledObjectPolicy : IPooledObjectPolicy<AntiforgerySerializationContext>
109
{
1110
public AntiforgerySerializationContext Create()
1211
{

src/Antiforgery/src/Internal/AntiforgeryToken.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
namespace Microsoft.AspNetCore.Antiforgery.Internal
4+
namespace Microsoft.AspNetCore.Antiforgery
55
{
6-
public sealed class AntiforgeryToken
6+
internal sealed class AntiforgeryToken
77
{
88
internal const int SecurityTokenBitLength = 128;
99
internal const int ClaimUidBitLength = 256;
@@ -50,4 +50,4 @@ public string Username
5050
}
5151
}
5252
}
53-
}
53+
}

src/Antiforgery/src/Internal/BinaryBlob.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
using System.Security.Cryptography;
99
using System.Text;
1010

11-
namespace Microsoft.AspNetCore.Antiforgery.Internal
11+
namespace Microsoft.AspNetCore.Antiforgery
1212
{
1313
// Represents a binary blob (token) that contains random data.
1414
// Useful for binary data inside a serialized stream.
1515
[DebuggerDisplay("{DebuggerString}")]
16-
public sealed class BinaryBlob : IEquatable<BinaryBlob>
16+
internal sealed class BinaryBlob : IEquatable<BinaryBlob>
1717
{
1818
private static readonly RandomNumberGenerator _randomNumberGenerator = RandomNumberGenerator.Create();
1919
private readonly byte[] _data;
@@ -114,4 +114,4 @@ private static bool AreByteArraysEqual(byte[] a, byte[] b)
114114
return areEqual;
115115
}
116116
}
117-
}
117+
}

src/Antiforgery/src/Internal/CryptographyAlgorithms.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
using System.Security.Cryptography;
55

6-
namespace Microsoft.AspNetCore.Antiforgery.Internal
6+
namespace Microsoft.AspNetCore.Antiforgery
77
{
8-
public static class CryptographyAlgorithms
8+
internal static class CryptographyAlgorithms
99
{
1010
public static SHA256 CreateSHA256()
1111
{

0 commit comments

Comments
 (0)