35 references to DateTimeFormats
System.IdentityModel (35)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (4)
2536
created = DateTime.ParseExact(reader.ReadString(),
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
2543
expires = DateTime.ParseExact(reader.ReadString(),
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
2581
writer.WriteElementString(WSUtilityConstants.Prefix, WSUtilityConstants.ElementNames.Created, WSUtilityConstants.NamespaceURI, lifetime.Created.Value.ToString(
DateTimeFormats
.Generated, CultureInfo.InvariantCulture));
2586
writer.WriteElementString(WSUtilityConstants.Prefix, WSUtilityConstants.ElementNames.Expires, WSUtilityConstants.NamespaceURI, lifetime.Expires.Value.ToString(
DateTimeFormats
.Generated, CultureInfo.InvariantCulture));
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
98
wi.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow,
DateTimeFormats
.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
171
identity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow,
DateTimeFormats
.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (16)
1378
DateTime authInstantTime = DateTime.ParseExact(authenticationInstant,
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
1985
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(),
DateTimeFormats
.Generated), ClaimValueTypes.DateTime, issuer));
2684
assertion.IssueInstant = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
2877
writer.WriteAttributeString(Saml2Constants.Attributes.IssueInstant, XmlConvert.ToString(data.IssueInstant.ToUniversalTime(),
DateTimeFormats
.Generated));
3722
authnInstant = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
3731
sessionNotOnOrAfter = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
3794
writer.WriteAttributeString(Saml2Constants.Attributes.AuthnInstant, XmlConvert.ToString(data.AuthenticationInstant.ToUniversalTime(),
DateTimeFormats
.Generated));
3805
writer.WriteAttributeString(Saml2Constants.Attributes.SessionNotOnOrAfter, XmlConvert.ToString(data.SessionNotOnOrAfter.Value.ToUniversalTime(),
DateTimeFormats
.Generated));
4037
conditions.NotBefore = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
4044
conditions.NotOnOrAfter = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
4169
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(),
DateTimeFormats
.Generated));
4175
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(),
DateTimeFormats
.Generated));
5291
confirmationData.NotBefore = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
5298
confirmationData.NotOnOrAfter = XmlConvert.ToDateTime(value,
DateTimeFormats
.Accepted);
5405
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(),
DateTimeFormats
.Generated));
5411
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(),
DateTimeFormats
.Generated));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (10)
391
DateTimeFormats
.Accepted,
1407
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(samlStatement.AuthenticationInstant.ToUniversalTime(),
DateTimeFormats
.Generated), ClaimValueTypes.DateTime, issuer));
1805
attributeValue,
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
1883
writer.WriteAttributeString(SamlConstants.AttributeNames.IssueInstant, null, assertion.IssueInstant.ToUniversalTime().ToString(
DateTimeFormats
.Generated, CultureInfo.InvariantCulture));
1926
time,
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
1933
time,
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
1989
conditions.NotBefore.ToUniversalTime().ToString(
DateTimeFormats
.Generated, DateTimeFormatInfo.InvariantInfo));
1998
conditions.NotOnOrAfter.ToUniversalTime().ToString(
DateTimeFormats
.Generated, DateTimeFormatInfo.InvariantInfo));
2862
authInstance,
DateTimeFormats
.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).ToUniversalTime();
2943
XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(),
DateTimeFormats
.Generated));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
250
new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(time.ToUniversalTime(),
DateTimeFormats
.Generated), ClaimValueTypes.DateTime));
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));