|
| 1 | +// Copyright (c) .NET Foundation. All rights reserved. |
| 2 | +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. |
| 3 | + |
| 4 | +namespace Microsoft.AspNetCore.Antiforgery |
| 5 | +{ |
| 6 | + internal partial class AntiforgeryFeature : Microsoft.AspNetCore.Antiforgery.IAntiforgeryFeature |
| 7 | + { |
| 8 | + public AntiforgeryFeature() { } |
| 9 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken CookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 10 | + public bool HaveDeserializedCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 11 | + public bool HaveDeserializedRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 12 | + public bool HaveGeneratedNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 13 | + public bool HaveStoredNewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 14 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 15 | + public string NewCookieTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 16 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewRequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 17 | + public string NewRequestTokenString { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 18 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken RequestToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 19 | + } |
| 20 | + |
| 21 | + internal partial class AntiforgerySerializationContext |
| 22 | + { |
| 23 | + public AntiforgerySerializationContext() { } |
| 24 | + public System.IO.BinaryReader Reader { get { throw null; } } |
| 25 | + public System.Security.Cryptography.SHA256 Sha256 { get { throw null; } } |
| 26 | + public System.IO.MemoryStream Stream { get { throw null; } } |
| 27 | + public System.IO.BinaryWriter Writer { get { throw null; } } |
| 28 | + public char[] GetChars(int count) { throw null; } |
| 29 | + public void Reset() { } |
| 30 | + } |
| 31 | + |
| 32 | + internal partial class AntiforgerySerializationContextPooledObjectPolicy : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext> |
| 33 | + { |
| 34 | + public AntiforgerySerializationContextPooledObjectPolicy() { } |
| 35 | + public Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext Create() { throw null; } |
| 36 | + public bool Return(Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext obj) { throw null; } |
| 37 | + } |
| 38 | + |
| 39 | + internal sealed partial class AntiforgeryToken |
| 40 | + { |
| 41 | + internal const int ClaimUidBitLength = 256; |
| 42 | + internal const int SecurityTokenBitLength = 128; |
| 43 | + public AntiforgeryToken() { } |
| 44 | + public string AdditionalData { get { throw null; } set { } } |
| 45 | + public Microsoft.AspNetCore.Antiforgery.BinaryBlob ClaimUid { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 46 | + public bool IsCookieToken { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 47 | + public Microsoft.AspNetCore.Antiforgery.BinaryBlob SecurityToken { get { throw null; } set { } } |
| 48 | + public string Username { get { throw null; } set { } } |
| 49 | + } |
| 50 | + |
| 51 | + [System.Diagnostics.DebuggerDisplayAttribute("{DebuggerString}")] |
| 52 | + internal sealed partial class BinaryBlob : System.IEquatable<Microsoft.AspNetCore.Antiforgery.BinaryBlob> |
| 53 | + { |
| 54 | + public BinaryBlob(int bitLength) { } |
| 55 | + public BinaryBlob(int bitLength, byte[] data) { } |
| 56 | + public int BitLength { get { throw null; } } |
| 57 | + public bool Equals(Microsoft.AspNetCore.Antiforgery.BinaryBlob other) { throw null; } |
| 58 | + public override bool Equals(object obj) { throw null; } |
| 59 | + public byte[] GetData() { throw null; } |
| 60 | + public override int GetHashCode() { throw null; } |
| 61 | + } |
| 62 | + |
| 63 | + internal partial class DefaultAntiforgery : Microsoft.AspNetCore.Antiforgery.IAntiforgery |
| 64 | + { |
| 65 | + public DefaultAntiforgery(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> antiforgeryOptionsAccessor, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenGenerator tokenGenerator, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenSerializer tokenSerializer, Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenStore tokenStore, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { } |
| 66 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 67 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 68 | + [System.Diagnostics.DebuggerStepThroughAttribute] |
| 69 | + public System.Threading.Tasks.Task<bool> IsRequestValidAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 70 | + public void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext) { } |
| 71 | + protected virtual void SetDoNotCacheHeaders(Microsoft.AspNetCore.Http.HttpContext httpContext) { } |
| 72 | + [System.Diagnostics.DebuggerStepThroughAttribute] |
| 73 | + public System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 74 | + } |
| 75 | + |
| 76 | + internal partial class DefaultAntiforgeryTokenGenerator : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenGenerator |
| 77 | + { |
| 78 | + public DefaultAntiforgeryTokenGenerator(Microsoft.AspNetCore.Antiforgery.IClaimUidExtractor claimUidExtractor, Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProvider additionalDataProvider) { } |
| 79 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateCookieToken() { throw null; } |
| 80 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken) { throw null; } |
| 81 | + public bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken) { throw null; } |
| 82 | + public bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken requestToken, out string message) { throw null; } |
| 83 | + } |
| 84 | + |
| 85 | + internal partial class DefaultAntiforgeryTokenSerializer : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenSerializer |
| 86 | + { |
| 87 | + public DefaultAntiforgeryTokenSerializer(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext> pool) { } |
| 88 | + public Microsoft.AspNetCore.Antiforgery.AntiforgeryToken Deserialize(string serializedToken) { throw null; } |
| 89 | + public string Serialize(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken token) { throw null; } |
| 90 | + } |
| 91 | + |
| 92 | + internal partial class DefaultAntiforgeryTokenStore : Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenStore |
| 93 | + { |
| 94 | + public DefaultAntiforgeryTokenStore(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> optionsAccessor) { } |
| 95 | + public string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 96 | + [System.Diagnostics.DebuggerStepThroughAttribute] |
| 97 | + public System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) { throw null; } |
| 98 | + public void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token) { } |
| 99 | + } |
| 100 | + |
| 101 | + internal partial class DefaultClaimUidExtractor : Microsoft.AspNetCore.Antiforgery.IClaimUidExtractor |
| 102 | + { |
| 103 | + public DefaultClaimUidExtractor(Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext> pool) { } |
| 104 | + public string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal) { throw null; } |
| 105 | + public static System.Collections.Generic.IList<string> GetUniqueIdentifierParameters(System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> claimsIdentities) { throw null; } |
| 106 | + } |
| 107 | + |
| 108 | + internal partial interface IAntiforgeryFeature |
| 109 | + { |
| 110 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken CookieToken { get; set; } |
| 111 | + bool HaveDeserializedCookieToken { get; set; } |
| 112 | + bool HaveDeserializedRequestToken { get; set; } |
| 113 | + bool HaveGeneratedNewCookieToken { get; set; } |
| 114 | + bool HaveStoredNewCookieToken { get; set; } |
| 115 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewCookieToken { get; set; } |
| 116 | + string NewCookieTokenString { get; set; } |
| 117 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken NewRequestToken { get; set; } |
| 118 | + string NewRequestTokenString { get; set; } |
| 119 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken RequestToken { get; set; } |
| 120 | + } |
| 121 | + |
| 122 | + internal partial interface IAntiforgeryTokenGenerator |
| 123 | + { |
| 124 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateCookieToken(); |
| 125 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken GenerateRequestToken(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken); |
| 126 | + bool IsCookieTokenValid(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken); |
| 127 | + bool TryValidateTokenSet(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken cookieToken, Microsoft.AspNetCore.Antiforgery.AntiforgeryToken requestToken, out string message); |
| 128 | + } |
| 129 | + |
| 130 | + internal partial interface IAntiforgeryTokenSerializer |
| 131 | + { |
| 132 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryToken Deserialize(string serializedToken); |
| 133 | + string Serialize(Microsoft.AspNetCore.Antiforgery.AntiforgeryToken token); |
| 134 | + } |
| 135 | + |
| 136 | + internal partial interface IAntiforgeryTokenStore |
| 137 | + { |
| 138 | + string GetCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 139 | + System.Threading.Tasks.Task<Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet> GetRequestTokensAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 140 | + void SaveCookieToken(Microsoft.AspNetCore.Http.HttpContext httpContext, string token); |
| 141 | + } |
| 142 | + |
| 143 | + internal partial interface IClaimUidExtractor |
| 144 | + { |
| 145 | + string ExtractClaimUid(System.Security.Claims.ClaimsPrincipal claimsPrincipal); |
| 146 | + } |
| 147 | +} |
0 commit comments