63 instantiations of Claim
mscorlib (19)
system\security\claims\Claim.cs (1)
405
return new
Claim
(this, identity);
system\security\claims\ClaimsIdentity.cs (3)
353
SafeAddClaim(new
Claim
(m_nameType, identity.Name, ClaimValueTypes.String, DefaultIssuer, DefaultIssuer, this));
1139
Claim claim = new
Claim
(reader, this);
1157
return new
Claim
(reader, this);
system\security\claims\RoleClaimProvider.cs (1)
44
yield return new
Claim
(m_subject.RoleClaimType, m_roles[i], ClaimValueTypes.String, m_issuer, m_issuer, m_subject);
system\security\principal\genericidentity.cs (1)
160
base.AddClaim(new
Claim
(base.NameClaimType, m_name, ClaimValueTypes.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, this));
system\security\principal\windowsidentity.cs (13)
1288
m_userClaims.Add(new
Claim
(NameClaimType, Name, ClaimValueTypes.String, m_issuerName, m_issuerName, this));
1345
Claim claim = new
Claim
(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1352
Claim claim = new
Claim
(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1403
instanceClaims.Add(new
Claim
(ClaimTypes.PrimaryGroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1407
instanceClaims.Add(new
Claim
(ClaimTypes.GroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1414
instanceClaims.Add(new
Claim
(ClaimTypes.DenyOnlyPrimaryGroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1418
instanceClaims.Add(new
Claim
(ClaimTypes.DenyOnlySid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1452
instanceClaims.Add(new
Claim
(ClaimTypes.PrimarySid, sid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(sid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1456
instanceClaims.Add(new
Claim
(ClaimTypes.DenyOnlyPrimarySid, sid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(sid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1500
instanceClaims.Add( new
Claim
(windowsClaim.Name, Marshal.PtrToStringAuto(stringPointers[item]), ClaimValueTypes.String, m_issuerName, m_issuerName, this, propertyValue, string.Empty));
1510
instanceClaims.Add(new
Claim
(windowsClaim.Name, Convert.ToString(intValues[item], CultureInfo.InvariantCulture), ClaimValueTypes.Integer64, m_issuerName, m_issuerName, this, propertyValue, string.Empty));
1521
instanceClaims.Add( new
Claim
(windowsClaim.Name, Convert.ToString((UInt64)uintValues[item], CultureInfo.InvariantCulture), ClaimValueTypes.UInteger64, m_issuerName, m_issuerName, this, propertyValue, string.Empty));
1531
instanceClaims.Add(new
Claim
(windowsClaim.Name,
System.IdentityModel (40)
System\IdentityModel\Claims\AuthorizationContext.cs (2)
44
_resource.Add( new System.Security.Claims.
Claim
( ClaimTypes.Name, resource ) );
47
_action.Add( new System.Security.Claims.
Claim
( ClaimTypes.Name, action ) );
System\IdentityModel\Claims\ClaimsConversionHelper.cs (1)
107
System.Security.Claims.Claim newClaim = new System.Security.Claims.
Claim
(claimType, value, valueType, issuer, originalIssuer);
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (2)
98
wi.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
99
wi.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Windows, ClaimValueTypes.String));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (3)
169
ClaimsIdentity identity = new ClaimsIdentity(new Claim[] { new
Claim
(ClaimTypes.Rsa, rsaToken.Rsa.ToXmlString(false), ClaimValueTypes.RsaKeyValue, ClaimsIdentity.DefaultIssuer) }, AuthenticationTypes.Signature);
171
identity.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
172
identity.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Signature));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (7)
1235
attributes.Add(this.CreateAttribute(new
Claim
(ClaimTypes.Actor, this.CreateXmlStringFromAttributes(collectedAttributes), ClaimValueTypes.String), tokenDescriptor));
1784
Claim claim = new
Claim
(ClaimTypes.NameIdentifier, nameId.Value, ClaimValueTypes.String, issuer);
1851
Claim claim = new
Claim
(attribute.Name, value, attribute.AttributeValueXsiType, issuer, originalIssuer);
1924
claim = new
Claim
(innerAttribute.Name, innerAttribute.Values[k], innerAttribute.AttributeValueXsiType, issuer);
1928
claim = new
Claim
(innerAttribute.Name, innerAttribute.Values[k], innerAttribute.AttributeValueXsiType, issuer, originalIssuer);
1978
new
Claim
(
1985
subject.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (7)
540
attributes.Add(CreateAttribute(new
Claim
(ClaimTypes.Actor, CreateXmlStringFromAttributes(collectedAttributes), ClaimValueTypes.String), tokenDescriptor));
1307
subject.AddClaim(new
Claim
(claimType, attr.AttributeValues[k], claimValueType, issuer, originalIssuer));
1364
Claim claim = new
Claim
(ClaimTypes.NameIdentifier, samlSubject.Name, ClaimValueTypes.String, issuer);
1406
subject.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, NormalizeAuthenticationType(samlStatement.AuthenticationMethod), ClaimValueTypes.String, issuer));
1407
subject.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(samlStatement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
1482
claim = new
Claim
(claimType, innerAttribute.AttributeValues[k], claimValueType, issuer);
1486
claim = new
Claim
(claimType, innerAttribute.AttributeValues[k], claimValueType, issuer, originalIssuer);
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (2)
247
new
Claim
(ClaimTypes.AuthenticationMethod, authType, ClaimValueTypes.String));
250
new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(time.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
1111
Claim claim = new
Claim
(dictionaryReader.GetAttribute(dictionary.Type, dictionary.EmptyString),
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (2)
104
windowsIdentity.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
105
windowsIdentity.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Password));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (3)
545
identity.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, AuthenticationMethods.X509));
577
windowsIdentity.AddClaim(new
Claim
(ClaimTypes.AuthenticationMethod, AuthenticationMethods.X509));
586
identity.AddClaim(new
Claim
(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\X509Util.cs (10)
193
claimsCollection.Add(new
Claim
(ClaimTypes.Thumbprint, thumbprint, ClaimValueTypes.Base64Binary, issuer));
198
claimsCollection.Add(new
Claim
(ClaimTypes.X500DistinguishedName, value, ClaimValueTypes.String, issuer));
204
claimsCollection.Add(new
Claim
(ClaimTypes.Dns, value, ClaimValueTypes.String, issuer));
210
claimsCollection.Add(new
Claim
(ClaimTypes.Name, value, ClaimValueTypes.String, issuer));
216
claimsCollection.Add(new
Claim
(ClaimTypes.Email, value, ClaimValueTypes.String, issuer));
222
claimsCollection.Add(new
Claim
(ClaimTypes.Upn, value, ClaimValueTypes.String, issuer));
228
claimsCollection.Add(new
Claim
(ClaimTypes.Uri, value, ClaimValueTypes.String, issuer));
242
claimsCollection.Add(new
Claim
(ClaimTypes.Rsa, rsa.ToXmlString(false), ClaimValueTypes.RsaKeyValue, issuer));
256
claimsCollection.Add(new
Claim
(ClaimTypes.Dsa, dsa.ToXmlString(false), ClaimValueTypes.DsaKeyValue, issuer));
262
claimsCollection.Add(new
Claim
(ClaimTypes.SerialNumber, value, ClaimValueTypes.String, issuer));
System.ServiceModel (2)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
570
new System.Security.Claims.
Claim
(
587
new System.Security.Claims.
Claim
(
System.Web (2)
Security\FormsIdentity.cs (1)
118
base.AddClaim(new
Claim
(base.NameClaimType, _Ticket.Name, ClaimValueTypes.String, "Forms", "Forms", this));
Security\RoleClaimProvider.cs (1)
40
yield return new
Claim
(_subject.RoleClaimType, role, ClaimValueTypes.String, _rolePrincipal.ProviderName, _rolePrincipal.ProviderName, _subject);
228 references to Claim
mscorlib (155)
system\security\claims\Claim.cs (44)
67
/// Initializes an instance of <see cref="
Claim
"/> using a <see cref="BinaryReader"/>.
70
/// <param name="reader">a <see cref="BinaryReader"/> pointing to a <see cref="
Claim
"/>.</param>
78
/// Initializes an instance of <see cref="
Claim
"/> using a <see cref="BinaryReader"/>.
81
/// <param name="reader">a <see cref="BinaryReader"/> pointing to a <see cref="
Claim
"/>.</param>
82
/// <param name="subject"> the value for <see cref="
Claim
.Subject"/>, which is the <see cref="ClaimsIdentity"/> that has these claims.</param>
93
/// Creates a <see cref="
Claim
"/> with the specified type and value.
99
/// <see cref="
Claim
.Issuer"/> is set to <see cref="ClaimsIdentity.DefaultIssuer"/>,
100
/// <see cref="
Claim
.ValueType"/> is set to <see cref="ClaimValueTypes.String"/>,
101
/// <see cref="
Claim
.OriginalIssuer"/> is set to <see cref="ClaimsIdentity.DefaultIssuer"/>, and
102
/// <see cref="
Claim
.Subject"/> is set to null.
113
/// Creates a <see cref="
Claim
"/> with the specified type, value, and value type.
120
/// <see cref="
Claim
.Issuer"/> is set to <see cref="ClaimsIdentity.DefaultIssuer"/>,
121
/// <see cref="
Claim
.OriginalIssuer"/> is set to <see cref="ClaimsIdentity.DefaultIssuer"/>,
122
/// and <see cref="
Claim
.Subject"/> is set to null.
133
/// Creates a <see cref="
Claim
"/> with the specified type, value, value type, and issuer.
141
/// <see cref="
Claim
.OriginalIssuer"/> is set to value of the <paramref name="issuer"/> parameter,
142
/// <see cref="
Claim
.Subject"/> is set to null.
153
/// Creates a <see cref="
Claim
"/> with the specified type, value, value type, issuer and original issuer.
162
/// <see cref="
Claim
.Subject"/> is set to null.
173
/// Creates a <see cref="
Claim
"/> with the specified type, value, value type, issuer and original issuer.
250
/// Copy constructor for <see cref="
Claim
"/>
252
/// <param name="other">the <see cref="
Claim
"/> to copy.</param>
253
/// <remarks><see cref="
Claim
.Subject"/>will be set to 'null'.</remarks>
255
protected Claim(
Claim
other)
261
/// Copy constructor for <see cref="
Claim
"/>
263
/// <param name="other">the <see cref="
Claim
"/> to copy.</param>
264
/// <param name="subject">the <see cref="ClaimsIdentity"/> to assign to <see cref="
Claim
.Subject"/>.</param>
265
/// <remarks><see cref="
Claim
.Subject"/>will be set to 'subject'.</remarks>
267
protected Claim(
Claim
other, ClaimsIdentity subject)
307
/// Gets the issuer of the <see cref="
Claim
"/>.
321
/// Gets the original issuer of the <see cref="
Claim
"/>.
334
/// Gets the collection of Properties associated with the <see cref="
Claim
"/>.
356
/// Gets the subject of the <see cref="
Claim
"/>.
365
/// Gets the claim type of the <see cref="
Claim
"/>.
374
/// Gets the value of the <see cref="
Claim
"/>.
382
/// Gets the value type of the <see cref="
Claim
"/>.
391
/// Creates a new instance <see cref="
Claim
"/> with values copied from this object.
393
public virtual
Claim
Clone()
399
/// Creates a new instance <see cref="
Claim
"/> with values copied from this object.
401
/// <param name="identity">the value for <see cref="
Claim
.Subject"/>, which is the <see cref="ClaimsIdentity"/> that has these claims.
402
/// <remarks><see cref="
Claim
.Subject"/> will be set to 'identity'.</remarks>
403
public virtual
Claim
Clone(ClaimsIdentity identity)
614
/// Returns a string representation of the <see cref="
Claim
"/> object.
619
/// <returns>The string representation of the <see cref="
Claim
"/> object.</returns>
system\security\claims\ClaimsIdentity.cs (67)
85
List<
Claim
> m_instanceClaims = new List<
Claim
>();
90
Collection<IEnumerable<
Claim
>> m_externalClaims = new Collection<IEnumerable<
Claim
>>();
131
: this((
Claim
[])null)
142
: this(identity, (IEnumerable<
Claim
>)null)
148
/// <see cref="
Claim
"/> objects.
151
/// The collection of <see cref="
Claim
"/> objects to populate <see cref="Identity.Claims"/> with.
156
public ClaimsIdentity(IEnumerable<
Claim
> claims)
162
/// Initializes an instance of <see cref="Identity"/> with an empty <see cref="
Claim
"/> collection
167
: this((IIdentity) null, (IEnumerable<
Claim
>)null, authenticationType, (string)null, (string)null)
173
/// <see cref="
Claim
"/> objects.
176
/// The collection of <see cref="
Claim
"/> objects to populate <see cref="Identity.Claims"/> with.
182
public ClaimsIdentity(IEnumerable<
Claim
> claims, string authenticationType)
193
public ClaimsIdentity(IIdentity identity, IEnumerable<
Claim
> claims)
199
/// Initializes an instance of <see cref="Identity"/> with an empty <see cref="
Claim
"/> collection,
206
: this((IIdentity) null, (IEnumerable<
Claim
>)null, authenticationType, nameType, roleType)
212
/// <see cref="
Claim
"/>, authentication type, name claim type, role claim type, and bootstrapContext.
214
/// <param name="claims">An enumeration of type <see cref="
Claim
"/> to initialize this identity</param>
218
public ClaimsIdentity(IEnumerable<
Claim
> claims, string authenticationType, string nameType, string roleType)
225
/// <see cref="
Claim
"/>, authentication type, name claim type, role claim type, and bootstrapContext.
228
/// <param name="claims">An enumeration of type <see cref="
Claim
"/> to initialize this identity.</param>
232
public ClaimsIdentity(IIdentity identity, IEnumerable<
Claim
> claims, string authenticationType, string nameType, string roleType)
243
/// <param name="claims">An enumeration of type <see cref="
Claim
"/> to initialize this identity.</param>
248
internal ClaimsIdentity(IIdentity identity, IEnumerable<
Claim
> claims, string authenticationType, string nameType, string roleType, bool checkAuthType)
498
public virtual IEnumerable<
Claim
> Claims
513
foreach (
Claim
claim in m_externalClaims[j])
539
internal Collection<IEnumerable<
Claim
>> ExternalClaims
562
Claim
claim = FindFirst(m_nameType);
634
public virtual void AddClaim(
Claim
claim)
661
public virtual void AddClaims(IEnumerable<
Claim
> claims)
670
foreach (
Claim
claim in claims)
687
public virtual bool TryRemoveClaim(
Claim
claim)
704
public virtual void RemoveClaim(
Claim
claim)
720
void SafeAddClaims(IEnumerable<
Claim
> claims)
722
foreach (
Claim
claim in claims)
743
void SafeAddClaim(
Claim
claim)
760
public virtual IEnumerable<
Claim
> FindAll(Predicate<
Claim
> match)
769
List<
Claim
> claims = new List<
Claim
>();
771
foreach (
Claim
claim in Claims)
788
public virtual IEnumerable<
Claim
> FindAll(string type)
797
List<
Claim
> claims = new List<
Claim
>();
799
foreach (
Claim
claim in Claims)
818
public virtual bool HasClaim(Predicate<
Claim
> match)
827
foreach (
Claim
claim in Claims)
859
foreach (
Claim
claim in Claims)
876
/// Retrieves the first <see cref="
Claim
"/> that is matched by <param name="match"/>.
879
/// <returns>A <see cref="
Claim
"/>, null if nothing matches.</returns>
881
public virtual
Claim
FindFirst(Predicate<
Claim
> match)
890
foreach (
Claim
claim in Claims)
902
/// Retrieves the first <see cref="
Claim
"/> where Claim.Type equals <paramref name="type"/>.
905
/// <returns>A <see cref="
Claim
"/>, null if nothing matches.</returns>
907
public virtual
Claim
FindFirst(string type)
916
foreach (
Claim
claim in Claims)
965
m_instanceClaims = new List<
Claim
>();
967
m_externalClaims = new Collection<IEnumerable<
Claim
>>();
1039
m_instanceClaims = (List<
Claim
>)(new BinaryFormatter()).Deserialize(stream, null, false);
1049
m_instanceClaims = new List<
Claim
>();
1139
Claim
claim = new Claim(reader, this);
1146
/// Provides and extensibility point for derived types to create a custom <see cref="
Claim
"/>.
1149
/// <returns>a new <see cref="
Claim
"/>.</returns>
1150
protected virtual
Claim
CreateClaim(BinaryReader reader)
1267
foreach (
var
claim in m_instanceClaims)
system\security\claims\ClaimsPrincipal.cs (21)
508
public virtual IEnumerable<
Claim
> Claims
514
foreach (
Claim
claim in identity.Claims)
548
public virtual IEnumerable<
Claim
> FindAll(Predicate<
Claim
> match)
557
List<
Claim
> claims = new List<
Claim
>();
563
foreach (
Claim
claim in identity.FindAll(match))
580
public virtual IEnumerable<
Claim
> FindAll(string type)
589
List<
Claim
> claims = new List<
Claim
>();
595
foreach (
Claim
claim in identity.FindAll(type))
606
/// Retrieves the first <see cref="
Claim
"/> that is matched by <param name="match"/>.
609
/// <returns>A <see cref="
Claim
"/>, null if nothing matches.</returns>
611
public virtual
Claim
FindFirst(Predicate<
Claim
> match)
620
Claim
claim = null;
638
/// Retrieves the first <see cref="
Claim
"/> where the Claim.Type equals <paramref name="type"/>.
641
/// <returns>A <see cref="
Claim
"/>, null if nothing matches.</returns>
643
public virtual
Claim
FindFirst(string type)
652
Claim
claim = null;
674
public virtual bool HasClaim(Predicate<
Claim
> match)
system\security\claims\RoleClaimProvider.cs (1)
36
public IEnumerable<
Claim
> Claims
system\security\principal\genericidentity.cs (2)
96
public override IEnumerable<
Claim
> Claims
143
foreach (
Claim
c in base.Claims)
system\security\principal\windowsidentity.cs (16)
98
List<
Claim
> m_deviceClaims;
101
List<
Claim
> m_userClaims;
1218
public virtual IEnumerable<
Claim
> UserClaims
1231
public virtual IEnumerable<
Claim
> DeviceClaims
1245
public override IEnumerable<
Claim
> Claims
1254
foreach (
Claim
claim in base.Claims)
1257
foreach (
Claim
claim in m_userClaims)
1260
foreach (
Claim
claim in m_deviceClaims)
1278
m_userClaims = new List<
Claim
>();
1279
m_deviceClaims = new List<
Claim
>();
1321
void AddDeviceGroupSidClaims(List<
Claim
> instanceClaims, TokenInformationClass tokenInformationClass)
1345
Claim
claim = new Claim(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1352
Claim
claim = new Claim(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1371
void AddGroupSidClaims(List<
Claim
> instanceClaims)
1435
void AddPrimarySidClaim(List<
Claim
> instanceClaims)
1466
void AddTokenClaims(List<
Claim
> instanceClaims, TokenInformationClass tokenInformationClass, string propertyValue)
system\security\principal\windowsprincipal.cs (4)
167
public virtual IEnumerable<
Claim
> UserClaims
176
foreach (
Claim
claim in wi.UserClaims)
189
public virtual IEnumerable<
Claim
> DeviceClaims
198
foreach (
Claim
claim in wi.DeviceClaims)
System (1)
security\system\security\claims\DynamicRoleClaimProvider.cs (1)
16
public static void AddDynamicRoleClaims(ClaimsIdentity claimsIdentity, IEnumerable<
Claim
> claims)
System.IdentityModel (67)
System\IdentityModel\Claims\AuthorizationContext.cs (8)
18
Collection<System.Security.Claims.
Claim
> _action = new Collection<System.Security.Claims.
Claim
>();
19
Collection<System.Security.Claims.
Claim
> _resource = new Collection<System.Security.Claims.
Claim
>();
58
public AuthorizationContext( ClaimsPrincipal principal, Collection<System.Security.Claims.
Claim
> resource, Collection<System.Security.Claims.
Claim
> action )
83
public Collection<System.Security.Claims.
Claim
> Action
91
public Collection<System.Security.Claims.
Claim
> Resource
System\IdentityModel\Claims\ClaimProperties.cs (1)
8
/// Defines the keys for properties contained in <see cref="
Claim
.Properties"/>.
System\IdentityModel\Claims\ClaimsConversionHelper.cs (3)
64
public static System.Security.Claims.
Claim
CreateClaimFromWcfClaim(System.IdentityModel.Claims.Claim wcfClaim)
69
public static System.Security.Claims.
Claim
CreateClaimFromWcfClaim(System.IdentityModel.Claims.Claim wcfClaim, string issuer)
107
System.Security.Claims.
Claim
newClaim = new System.Security.Claims.Claim(claimType, value, valueType, issuer, originalIssuer);
System\IdentityModel\Claims\ClaimsHelper.cs (2)
12
using Claim = System.Security.Claims.
Claim
;
57
foreach (
Claim
claim in claimsIdentity.Claims)
System\IdentityModel\Diagnostics\AuthorizeTraceRecord.cs (1)
60
foreach (
Claim
c in ci.Claims )
System\IdentityModel\Diagnostics\ClaimsPrincipalTraceRecord.cs (1)
73
foreach (
Claim
c in ci.Claims )
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
169
ClaimsIdentity identity = new ClaimsIdentity(new
Claim
[] { new Claim(ClaimTypes.Rsa, rsaToken.Rsa.ToXmlString(false), ClaimValueTypes.RsaKeyValue, ClaimsIdentity.DefaultIssuer) }, AuthenticationTypes.Signature);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (16)
27
using Claim = System.Security.Claims.
Claim
;
1078
/// <param name="claim">The <see cref="
Claim
"/> from which to generate a <see cref="Saml2Attribute"/>.</param>
1082
protected virtual Saml2Attribute CreateAttribute(
Claim
claim, SecurityTokenDescriptor tokenDescriptor)
1137
foreach (
Claim
claim in subject.Claims)
1224
foreach (
Claim
claim in subject.Actor.Claims)
1342
IEnumerable<
Claim
> claimCollection = from c in tokenDescriptor.Subject.Claims where c.Type == ClaimTypes.AuthenticationMethod select c;
1343
if (claimCollection.Count<
Claim
>() > 0)
1348
authenticationMethod = claimCollection.First<
Claim
>().Value;
1353
if (claimCollection.Count<
Claim
>() > 0)
1355
authenticationInstant = claimCollection.First<
Claim
>().Value;
1425
foreach (
Claim
claim in tokenDescriptor.Subject.Claims)
1784
Claim
claim = new Claim(ClaimTypes.NameIdentifier, nameId.Value, ClaimValueTypes.String, issuer);
1851
Claim
claim = new Claim(attribute.Name, value, attribute.AttributeValueXsiType, issuer, originalIssuer);
1890
Collection<
Claim
> claims = new Collection<
Claim
>();
1921
Claim
claim = null;
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (18)
24
using Claim = System.Security.Claims.
Claim
;
358
IEnumerable<
Claim
> claimCollection = (from c in tokenDescriptor.Subject.Claims
361
if (claimCollection.Count<
Claim
>() > 0)
366
authenticationMethod = claimCollection.First<
Claim
>().Value;
372
if (claimCollection.Count<
Claim
>() > 0)
374
authenticationInstant = claimCollection.First<
Claim
>().Value;
435
foreach (
Claim
claim in subject.Claims)
528
foreach (
Claim
claim in subject.Actor.Claims)
565
Claim
identityClaim = null;
568
foreach (
Claim
claim in tokenDescriptor.Subject.Claims)
663
protected virtual SamlAttribute CreateAttribute(
Claim
claim, SecurityTokenDescriptor tokenDescriptor)
1320
private static
Claim
GetClaim(ClaimsIdentity subject, string claimType)
1322
foreach (
Claim
claim in subject.Claims)
1354
Claim
nameIdentifierClaim = GetClaim(subject, ClaimTypes.NameIdentifier);
1364
Claim
claim = new Claim(ClaimTypes.NameIdentifier, samlSubject.Name, ClaimValueTypes.String, issuer);
1438
Collection<
Claim
> claims = new Collection<
Claim
>();
1479
Claim
claim = null;
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (2)
229
/// Adds a <see cref="
Claim
"/> for the authentication type to the claim collection of
239
/// Adds <see cref="
Claim
"/>s for the authentication type and the authentication instant
System\IdentityModel\Tokens\SessionSecurityToken.cs (9)
23
using Claim = System.Security.Claims.
Claim
;
955
Collection<
Claim
> claims = new Collection<
Claim
>();
1090
void ReadClaims(XmlDictionaryReader dictionaryReader, SessionDictionary dictionary, Collection<
Claim
> claims)
1111
Claim
claim = new Claim(dictionaryReader.GetAttribute(dictionary.Type, dictionary.EmptyString),
1329
delegate(
Claim
c)
1382
delegate bool OutboundClaimsFilter(
Claim
claim);
1392
void WriteClaims(XmlDictionaryWriter dictionaryWriter, SessionDictionary dictionary, IEnumerable<
Claim
> claims, OutboundClaimsFilter outboundClaimsFilter)
1409
foreach (
Claim
claim in claims)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
20
using Claim = System.Security.Claims.
Claim
;
System\IdentityModel\X509Util.cs (4)
18
using Claim = System.Security.Claims.
Claim
;
183
public static IEnumerable<
Claim
> GetClaimsFromCertificate(X509Certificate2 certificate, string issuer)
190
ICollection<
Claim
> claimsCollection = new Collection<
Claim
>();
System.ServiceModel (2)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
563
System.Security.Claims.
Claim
authenticationMethodClaim =
580
System.Security.Claims.
Claim
authenticationInstantClaim =
System.Web (3)
Security\FormsIdentity.cs (2)
57
public override IEnumerable<
Claim
> Claims
101
foreach (
Claim
c in base.Claims)
Security\RoleClaimProvider.cs (1)
34
public IEnumerable<
Claim
> Claims