71 references to ClaimValueTypes
mscorlib (30)
system\security\claims\Claim.cs (14)
100
/// <see cref="Claim.ValueType"/> is set to <see cref="
ClaimValueTypes
.String"/>,
106
/// <seealso cref="
ClaimValueTypes
"/>
108
: this(type, value,
ClaimValueTypes
.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, (ClaimsIdentity)null)
126
/// <seealso cref="
ClaimValueTypes
"/>
137
/// <param name="valueType">The claim value type. If this parameter is empty or null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
146
/// <seealso cref="
ClaimValueTypes
"/>
157
/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
166
/// <seealso cref="
ClaimValueTypes
"/>
177
/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
184
/// <seealso cref="
ClaimValueTypes
"/>
215
m_valueType =
ClaimValueTypes
.String;
384
/// <seealso cref="
ClaimValueTypes
"/>
443
m_valueType =
ClaimValueTypes
.String;
535
if (!string.Equals(m_valueType,
ClaimValueTypes
.String, StringComparison.Ordinal))
system\security\claims\ClaimsIdentity.cs (1)
353
SafeAddClaim(new Claim(m_nameType, identity.Name,
ClaimValueTypes
.String, DefaultIssuer, DefaultIssuer, 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));
1533
ClaimValueTypes
.Boolean,
System.IdentityModel (38)
System\IdentityModel\Claims\ClaimsConversionHelper.cs (5)
73
string valueType =
ClaimValueTypes
.String;
160
_valueType =
ClaimValueTypes
.Base64Binary;
166
_valueType =
ClaimValueTypes
.Base64Binary;
187
_valueType =
ClaimValueTypes
.X500Name;
198
_valueType =
ClaimValueTypes
.RsaKeyValue;
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 (2)
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));
System\IdentityModel\Tokens\Saml2Attribute.cs (1)
23
private string attributeValueXsiType = System.Security.Claims.
ClaimValueTypes
.String;
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (5)
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);
1981
ClaimValueTypes
.String,
1985
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated),
ClaimValueTypes
.DateTime, issuer));
3224
if (!StringComparer.Ordinal.Equals(data.AttributeValueXsiType,
ClaimValueTypes
.String))
System\IdentityModel\Tokens\SamlAttribute.cs (1)
19
string attributeValueXsiType = System.Security.Claims.
ClaimValueTypes
.String;
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (7)
540
attributes.Add(CreateAttribute(new Claim(ClaimTypes.Actor, CreateXmlStringFromAttributes(collectedAttributes),
ClaimValueTypes
.String), tokenDescriptor));
1302
string claimValueType =
ClaimValueTypes
.String;
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));
1469
string claimValueType =
ClaimValueTypes
.String;
2788
if (SamlAttribute != null && !StringComparer.Ordinal.Equals(SamlAttribute.AttributeValueXsiType,
ClaimValueTypes
.String))
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)
1336
|| c.Type == ClaimTypes.Name && c.Issuer == ClaimsIdentity.DefaultIssuer && c.ValueType ==
ClaimValueTypes
.String)
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
104
windowsIdentity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated),
ClaimValueTypes
.DateTime));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
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 (1)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (1)
588
System.Security.Claims.ClaimTypes.AuthenticationInstant, authenticationInstant,
ClaimValueTypes
.DateTime,
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);