-
Notifications
You must be signed in to change notification settings - Fork 32
/
InMemoryCryptoProviderCache.xml
301 lines (301 loc) Β· 20.7 KB
/
InMemoryCryptoProviderCache.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<Type Name="InMemoryCryptoProviderCache" FullName="Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache">
<TypeSignature Language="C#" Value="public class InMemoryCryptoProviderCache : Microsoft.IdentityModel.Tokens.CryptoProviderCache, IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit InMemoryCryptoProviderCache extends Microsoft.IdentityModel.Tokens.CryptoProviderCache implements class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache" />
<TypeSignature Language="VB.NET" Value="Public Class InMemoryCryptoProviderCache
Inherits CryptoProviderCache
Implements IDisposable" />
<TypeSignature Language="F#" Value="type InMemoryCryptoProviderCache = class
 inherit CryptoProviderCache
 interface IDisposable" />
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>6.27.0.0</AssemblyVersion>
<AssemblyVersion>6.28.1.0</AssemblyVersion>
<AssemblyVersion>6.29.0.0</AssemblyVersion>
<AssemblyVersion>6.30.0.0</AssemblyVersion>
<AssemblyVersion>6.30.1.0</AssemblyVersion>
<AssemblyVersion>6.31.0.0</AssemblyVersion>
<AssemblyVersion>6.32.0.0</AssemblyVersion>
<AssemblyVersion>6.32.1.0</AssemblyVersion>
<AssemblyVersion>6.32.2.0</AssemblyVersion>
<AssemblyVersion>6.32.3.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.2.0</AssemblyVersion>
<AssemblyVersion>7.0.3.0</AssemblyVersion>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
<AssemblyVersion>7.3.1.0</AssemblyVersion>
<AssemblyVersion>7.4.0.0</AssemblyVersion>
<AssemblyVersion>7.4.1.0</AssemblyVersion>
<AssemblyVersion>7.5.0.0</AssemblyVersion>
<AssemblyVersion>7.5.1.0</AssemblyVersion>
<AssemblyVersion>7.5.2.0</AssemblyVersion>
<AssemblyVersion>7.6.0.0</AssemblyVersion>
<AssemblyVersion>7.6.2.0</AssemblyVersion>
<AssemblyVersion>7.6.3.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.1.0</AssemblyVersion>
<AssemblyVersion>8.0.2.0</AssemblyVersion>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<AssemblyVersion>8.1.1.0</AssemblyVersion>
<AssemblyVersion>8.1.2.0</AssemblyVersion>
<AssemblyVersion>8.2.0.0</AssemblyVersion>
<AssemblyVersion>8.2.1.0</AssemblyVersion>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Microsoft.IdentityModel.Tokens.CryptoProviderCache</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>
Defines a cache for crypto providers.
Current support is limited to <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> only.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public InMemoryCryptoProviderCache ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Creates a new instance of <see cref="T:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache" /> using the default <see cref="T:Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public InMemoryCryptoProviderCache (Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions cryptoProviderCacheOptions);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions cryptoProviderCacheOptions) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.#ctor(Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (cryptoProviderCacheOptions As CryptoProviderCacheOptions)" />
<MemberSignature Language="F#" Value="new Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache : Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions -> Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache" Usage="new Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache cryptoProviderCacheOptions" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="cryptoProviderCacheOptions" Type="Microsoft.IdentityModel.Tokens.CryptoProviderCacheOptions" />
</Parameters>
<Docs>
<param name="cryptoProviderCacheOptions">The options used to configure the <see cref="T:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache" />.</param>
<summary>
Creates a new instance of <see cref="T:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache" /> using the specified <paramref name="cryptoProviderCacheOptions" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="public void Dispose ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.Dispose" />
<MemberSignature Language="VB.NET" Value="Public Sub Dispose ()" />
<MemberSignature Language="F#" Value="abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit" Usage="inMemoryCryptoProviderCache.Dispose " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.IDisposable.Dispose</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Calls <see cref="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.Dispose(System.Boolean)" /> and <see cref="M:System.GC.SuppressFinalize(System.Object)" />
Note: the EventBasedLRUCache is no longer being disposed of, but since this is a public class and can be used as base class of
custom cache implementations, we need to keep it as some implementations may override Dispose().
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected virtual void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.Dispose(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub Dispose (disposing As Boolean)" />
<MemberSignature Language="F#" Value="abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit" Usage="inMemoryCryptoProviderCache.Dispose disposing" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">True if called from the <see cref="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.Dispose" /> method, false otherwise.</param>
<summary>
If <paramref name="disposing" /> is true, this method disposes of <see cref="F:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache._signingSignatureProviders" /> and <see cref="F:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache._verifyingSignatureProviders" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetCacheKey">
<MemberSignature Language="C#" Value="protected override string GetCacheKey (Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance string GetCacheKey(class Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.GetCacheKey(Microsoft.IdentityModel.Tokens.SignatureProvider)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function GetCacheKey (signatureProvider As SignatureProvider) As String" />
<MemberSignature Language="F#" Value="override this.GetCacheKey : Microsoft.IdentityModel.Tokens.SignatureProvider -> string" Usage="inMemoryCryptoProviderCache.GetCacheKey signatureProvider" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="signatureProvider" Type="Microsoft.IdentityModel.Tokens.SignatureProvider" />
</Parameters>
<Docs>
<param name="signatureProvider">the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to create the key for.</param>
<summary>
Returns the cache key to use when looking up an entry into the cache for a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /></summary>
<returns>the cache key to use for finding a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">if signatureProvider is null.</exception>
</Docs>
</Member>
<Member MemberName="GetCacheKey">
<MemberSignature Language="C#" Value="protected override string GetCacheKey (Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance string GetCacheKey(class Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.GetCacheKey(Microsoft.IdentityModel.Tokens.SecurityKey,System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function GetCacheKey (securityKey As SecurityKey, algorithm As String, typeofProvider As String) As String" />
<MemberSignature Language="F#" Value="override this.GetCacheKey : Microsoft.IdentityModel.Tokens.SecurityKey * string * string -> string" Usage="inMemoryCryptoProviderCache.GetCacheKey (securityKey, algorithm, typeofProvider)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="securityKey" Type="Microsoft.IdentityModel.Tokens.SecurityKey" />
<Parameter Name="algorithm" Type="System.String" />
<Parameter Name="typeofProvider" Type="System.String" />
</Parameters>
<Docs>
<param name="securityKey">the key that is used to by the crypto provider.</param>
<param name="algorithm">the algorithm that is used by the crypto provider.</param>
<param name="typeofProvider">the typeof the crypto provider obtained by calling object.GetType().</param>
<summary>
Returns the 'key' that will be used to find a crypto provider in this cache.
</summary>
<returns>the cache key to use for finding a crypto provider.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">if typeofProvider is null or empty string.</exception>
</Docs>
</Member>
<Member MemberName="TryAdd">
<MemberSignature Language="C#" Value="public override bool TryAdd (Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool TryAdd(class Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.TryAdd(Microsoft.IdentityModel.Tokens.SignatureProvider)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function TryAdd (signatureProvider As SignatureProvider) As Boolean" />
<MemberSignature Language="F#" Value="override this.TryAdd : Microsoft.IdentityModel.Tokens.SignatureProvider -> bool" Usage="inMemoryCryptoProviderCache.TryAdd signatureProvider" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="signatureProvider" Type="Microsoft.IdentityModel.Tokens.SignatureProvider" />
</Parameters>
<Docs>
<param name="signatureProvider">
<see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to cache.</param>
<summary>
Trys to adds a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to this cache.
</summary>
<returns>
<c>true</c> if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was added, <c>false</c> if the cache already contained the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> or if <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> should not be cached.
</returns>
<remarks>if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> is added <see cref="P:Microsoft.IdentityModel.Tokens.SignatureProvider.CryptoProviderCache" /> will be set to 'this'.</remarks>
<exception cref="T:System.ArgumentNullException">if signatureProvider is null.</exception>
</Docs>
</Member>
<Member MemberName="TryGetSignatureProvider">
<MemberSignature Language="C#" Value="public override bool TryGetSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider, bool willCreateSignatures, out Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool TryGetSignatureProvider(class Microsoft.IdentityModel.Tokens.SecurityKey securityKey, string algorithm, string typeofProvider, bool willCreateSignatures, [out] class Microsoft.IdentityModel.Tokens.SignatureProvider& signatureProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.TryGetSignatureProvider(Microsoft.IdentityModel.Tokens.SecurityKey,System.String,System.String,System.Boolean,Microsoft.IdentityModel.Tokens.SignatureProvider@)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function TryGetSignatureProvider (securityKey As SecurityKey, algorithm As String, typeofProvider As String, willCreateSignatures As Boolean, ByRef signatureProvider As SignatureProvider) As Boolean" />
<MemberSignature Language="F#" Value="override this.TryGetSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string * string * bool * SignatureProvider -> bool" Usage="inMemoryCryptoProviderCache.TryGetSignatureProvider (securityKey, algorithm, typeofProvider, willCreateSignatures, signatureProvider)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="securityKey" Type="Microsoft.IdentityModel.Tokens.SecurityKey" />
<Parameter Name="algorithm" Type="System.String" />
<Parameter Name="typeofProvider" Type="System.String" />
<Parameter Name="willCreateSignatures" Type="System.Boolean" />
<Parameter Name="signatureProvider" Type="Microsoft.IdentityModel.Tokens.SignatureProvider" RefType="out" />
</Parameters>
<Docs>
<param name="securityKey">the key that is used to by the crypto provider.</param>
<param name="algorithm">the algorithm that is used by the crypto provider.</param>
<param name="typeofProvider">the typeof the crypto provider obtained by calling object.GetType().</param>
<param name="willCreateSignatures">If true, the provider will be used for creating signatures.</param>
<param name="signatureProvider">the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> if found.</param>
<summary>
Trys to find a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to this cache.
</summary>
<returns>true if a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was found, false otherwise.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">if typeofProvider is null or empty string.</exception>
</Docs>
</Member>
<Member MemberName="TryRemove">
<MemberSignature Language="C#" Value="public override bool TryRemove (Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool TryRemove(class Microsoft.IdentityModel.Tokens.SignatureProvider signatureProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache.TryRemove(Microsoft.IdentityModel.Tokens.SignatureProvider)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function TryRemove (signatureProvider As SignatureProvider) As Boolean" />
<MemberSignature Language="F#" Value="override this.TryRemove : Microsoft.IdentityModel.Tokens.SignatureProvider -> bool" Usage="inMemoryCryptoProviderCache.TryRemove signatureProvider" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.IdentityModel.Tokens</AssemblyName>
<AssemblyVersion>8.3.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="signatureProvider" Type="Microsoft.IdentityModel.Tokens.SignatureProvider" />
</Parameters>
<Docs>
<param name="signatureProvider">
<see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> to remove.</param>
<summary>
Trys to remove a <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> from this cache.
</summary>
<returns>true if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was removed, false if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> was not found.</returns>
<remarks>if the <see cref="T:Microsoft.IdentityModel.Tokens.SignatureProvider" /> is removed <see cref="P:Microsoft.IdentityModel.Tokens.SignatureProvider.CryptoProviderCache" /> will be set to null.</remarks>
<exception cref="T:System.ArgumentNullException">if signatureProvider is null.</exception>
</Docs>
</Member>
</Members>
</Type>