File: SctClaimDictionary.cs

package info (click to toggle)
mono 4.6.2.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 778,148 kB
  • ctags: 914,052
  • sloc: cs: 5,779,509; xml: 2,773,713; ansic: 432,645; sh: 14,749; makefile: 12,361; perl: 2,488; python: 1,434; cpp: 849; asm: 531; sql: 95; sed: 16; php: 1
file content (388 lines) | stat: -rw-r--r-- 11,570 bytes parent folder | download | duplicates (9)
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

namespace System.ServiceModel.Security
{
    using System.Xml;
    using System.ServiceModel;
    using System.Collections.Generic;
    using System.IdentityModel.Claims;
    using System.IdentityModel.Policy;

    sealed class SctClaimDictionary : XmlDictionary
    {
        static readonly SctClaimDictionary instance = new SctClaimDictionary();

        // Claim entries
        XmlDictionaryString claim;
        XmlDictionaryString claimSets;
        XmlDictionaryString claimSet;
        XmlDictionaryString identities;
        XmlDictionaryString primaryIdentity;
        XmlDictionaryString primaryIssuer;

        XmlDictionaryString x509CertificateClaimSet;
        XmlDictionaryString systemClaimSet;
        XmlDictionaryString windowsClaimSet;
        XmlDictionaryString anonymousClaimSet;
       
        XmlDictionaryString binaryClaim;
        XmlDictionaryString dnsClaim;
        XmlDictionaryString hashClaim;
        XmlDictionaryString mailAddressClaim;
        XmlDictionaryString nameClaim;
        XmlDictionaryString rsaClaim;
        XmlDictionaryString spnClaim;
        XmlDictionaryString systemClaim;
        XmlDictionaryString upnClaim;
        XmlDictionaryString urlClaim;
        XmlDictionaryString windowsSidClaim;
        XmlDictionaryString denyOnlySidClaim;
        XmlDictionaryString x500DistinguishedNameClaim;
        XmlDictionaryString x509ThumbprintClaim;
        XmlDictionaryString right;

        XmlDictionaryString windowsSidIdentity;
        XmlDictionaryString genericIdentity;
        XmlDictionaryString authenticationType;

        XmlDictionaryString contextId;
        XmlDictionaryString effectiveTime;
        XmlDictionaryString expiryTime;
        XmlDictionaryString id;
        XmlDictionaryString isCookieMode;
        XmlDictionaryString key;
 
        XmlDictionaryString name;
        XmlDictionaryString sid;
        XmlDictionaryString nullValue;
        XmlDictionaryString securityContextToken;
        XmlDictionaryString serviceContractId;
        XmlDictionaryString value;
        XmlDictionaryString version;

        XmlDictionaryString genericXmlToken;
        XmlDictionaryString tokenType;
        XmlDictionaryString tokenXml;
        XmlDictionaryString internalTokenReference;
        XmlDictionaryString externalTokenReference;
        XmlDictionaryString keyGeneration;
        XmlDictionaryString keyEffectiveTime;
        XmlDictionaryString keyExpiryTime;

        XmlDictionaryString emptyString;
        
        private SctClaimDictionary()
        {
            this.securityContextToken = this.Add("SecurityContextSecurityToken");
            this.version = this.Add("Version");
            this.contextId = this.Add("ContextId");
            this.id = this.Add("Id");
            this.key = this.Add("Key");
            this.isCookieMode = this.Add("IsCookieMode");
            this.serviceContractId = this.Add("ServiceContractId");
            this.effectiveTime = this.Add("EffectiveTime");
            this.expiryTime = this.Add("ExpiryTime");
            this.keyGeneration = this.Add("KeyGeneration");
            this.keyEffectiveTime = this.Add("KeyEffectiveTime");
            this.keyExpiryTime = this.Add("KeyExpiryTime");
            this.claim = this.Add("Claim");
            this.claimSets = this.Add("ClaimSets");
            this.claimSet = this.Add("ClaimSet");
            this.identities = this.Add("Identities");
            this.primaryIdentity = this.Add("PrimaryIdentity");
            this.primaryIssuer = this.Add("PrimaryIssuer");

            this.x509CertificateClaimSet = this.Add("X509CertificateClaimSet");
            this.systemClaimSet = this.Add("SystemClaimSet");
            this.windowsClaimSet = this.Add("WindowsClaimSet");
            this.anonymousClaimSet = this.Add("AnonymousClaimSet");

            this.binaryClaim = this.Add("BinaryClaim");
            this.dnsClaim = this.Add("DnsClaim");
            this.genericIdentity = this.Add("GenericIdentity");
            this.authenticationType = this.Add("AuthenticationType");
            this.right = this.Add("Right");
            this.hashClaim = this.Add("HashClaim");
            this.mailAddressClaim = this.Add("MailAddressClaim");
            this.nameClaim = this.Add("NameClaim");
            this.rsaClaim = this.Add("RsaClaim");
            this.spnClaim = this.Add("SpnClaim");
            this.systemClaim = this.Add("SystemClaim");
            this.upnClaim = this.Add("UpnClaim");
            this.urlClaim = this.Add("UrlClaim");
            this.windowsSidClaim = this.Add("WindowsSidClaim");
            this.denyOnlySidClaim = this.Add("DenyOnlySidClaim");
            this.windowsSidIdentity = this.Add("WindowsSidIdentity");
            this.x500DistinguishedNameClaim = this.Add("X500DistinguishedClaim");
            this.x509ThumbprintClaim = this.Add("X509ThumbprintClaim");

            this.name = this.Add("Name");
            this.sid = this.Add("Sid");
            this.value = this.Add("Value");
            this.nullValue = this.Add("Null");
            this.genericXmlToken = this.Add("GenericXmlSecurityToken");
            this.tokenType = this.Add("TokenType");
            this.internalTokenReference = this.Add("InternalTokenReference");
            this.externalTokenReference = this.Add("ExternalTokenReference");
            this.tokenXml = this.Add("TokenXml");
            this.emptyString = this.Add(String.Empty);
        }

        public static SctClaimDictionary Instance
        {
            get { return instance; }
        }

        public XmlDictionaryString Claim
        {
            get { return this.claim; }
        }

        public XmlDictionaryString ClaimSets
        {
            get { return this.claimSets; }
        }

        public XmlDictionaryString ClaimSet
        {
            get { return this.claimSet; }
        }

        public XmlDictionaryString PrimaryIssuer
        {
            get { return this.primaryIssuer; }
        }

        public XmlDictionaryString Identities
        {
            get { return this.identities; }
        }

        public XmlDictionaryString PrimaryIdentity
        {
            get { return this.primaryIdentity; }
        }

        public XmlDictionaryString X509CertificateClaimSet
        {
            get { return this.x509CertificateClaimSet; }
        }

        public XmlDictionaryString SystemClaimSet
        {
            get { return this.systemClaimSet; }
        }

        public XmlDictionaryString WindowsClaimSet
        {
            get { return this.windowsClaimSet; }
        }

        public XmlDictionaryString AnonymousClaimSet
        {
            get { return this.anonymousClaimSet; }
        }

        public XmlDictionaryString ContextId
        {
            get { return this.contextId; }
        }

        public XmlDictionaryString BinaryClaim
        {
            get { return this.binaryClaim; }
        }

        public XmlDictionaryString DnsClaim
        {
            get { return this.dnsClaim; }
        }

        public XmlDictionaryString GenericIdentity
        {
            get { return this.genericIdentity; }
        }

        public XmlDictionaryString AuthenticationType
        {
            get { return this.authenticationType; }
        }

        public XmlDictionaryString Right
        {
            get { return this.right; }
        }

        public XmlDictionaryString HashClaim
        {
            get { return this.hashClaim; }
        }

        public XmlDictionaryString MailAddressClaim
        {
            get { return this.mailAddressClaim; }
        }

        public XmlDictionaryString NameClaim
        {
            get { return this.nameClaim; }
        }

        public XmlDictionaryString RsaClaim
        {
            get { return this.rsaClaim; }
        }

        public XmlDictionaryString SpnClaim
        {
            get { return this.spnClaim; }
        }

        public XmlDictionaryString SystemClaim
        {
            get { return this.systemClaim; }
        }

        public XmlDictionaryString UpnClaim
        {
            get { return this.upnClaim; }
        }

        public XmlDictionaryString UrlClaim
        {
            get { return this.urlClaim; }
        }

        public XmlDictionaryString WindowsSidClaim
        {
            get { return this.windowsSidClaim; }
        }

        public XmlDictionaryString DenyOnlySidClaim
        {
            get { return this.denyOnlySidClaim; }
        }

        public XmlDictionaryString WindowsSidIdentity
        {
            get { return this.windowsSidIdentity; }
        }

        public XmlDictionaryString X500DistinguishedNameClaim
        {
            get { return this.x500DistinguishedNameClaim; }
        }

        public XmlDictionaryString X509ThumbprintClaim
        {
            get { return this.x509ThumbprintClaim; }
        }

        public XmlDictionaryString EffectiveTime
        {
            get { return this.effectiveTime; }
        }

        public XmlDictionaryString ExpiryTime
        {
            get { return this.expiryTime; }
        }

        public XmlDictionaryString Id
        {
            get { return this.id; }
        }

        public XmlDictionaryString IsCookieMode
        {
            get { return this.isCookieMode; }
        }

        public XmlDictionaryString Key
        {
            get { return this.key; }
        }

        public XmlDictionaryString Sid
        {
            get { return this.sid; }
        }

        public XmlDictionaryString Name
        {
            get { return this.name; }
        }

        public XmlDictionaryString NullValue
        {
            get { return this.nullValue; }
        }

        public XmlDictionaryString SecurityContextSecurityToken
        {
            get { return this.securityContextToken; }
        }

        public XmlDictionaryString ServiceContractId
        {
            get { return this.serviceContractId; }
        }

        public XmlDictionaryString Value
        {
            get { return this.value; }
        }

        public XmlDictionaryString Version
        {
            get { return this.version; }
        }

        public XmlDictionaryString GenericXmlSecurityToken
        {
            get { return this.genericXmlToken; }
        }

        public XmlDictionaryString TokenType
        {
            get { return this.tokenType; }
        }

        public XmlDictionaryString TokenXml
        {
            get { return this.tokenXml; }
        }

        public XmlDictionaryString InternalTokenReference
        {
            get { return this.internalTokenReference; }
        }

        public XmlDictionaryString ExternalTokenReference
        {
            get { return this.externalTokenReference; }
        }

        public XmlDictionaryString EmptyString
        {
            get { return this.emptyString; }
        }

        public XmlDictionaryString KeyGeneration
        {
            get { return this.keyGeneration; }
        }

        public XmlDictionaryString KeyEffectiveTime
        {
            get { return this.keyEffectiveTime; }
        }

        public XmlDictionaryString KeyExpiryTime
        {
            get { return this.keyExpiryTime; }
        }
    }
}