@@ -39,149 +39,6 @@ public partial interface IAntiforgeryAdditionalDataProvider
39
39
bool ValidateAdditionalData ( Microsoft . AspNetCore . Http . HttpContext context , string additionalData ) ;
40
40
}
41
41
}
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
- }
185
42
namespace Microsoft . Extensions . DependencyInjection
186
43
{
187
44
public static partial class AntiforgeryServiceCollectionExtensions
0 commit comments