38 references to DateTimeUtil
System.IdentityModel (38)
System\IdentityModel\BoundedCache.cs (2)
191
_nextPurgeTime =
DateTimeUtil
.Add(currentTime, _purgeInterval);
378
_expirationTime =
DateTimeUtil
.ToUniversalTime(expirationTime);
System\IdentityModel\Protocols\WSTrust\Lifetime.cs (2)
45
_created =
DateTimeUtil
.ToUniversalTime( created );
46
_expires =
DateTimeUtil
.ToUniversalTime( expires );
System\IdentityModel\SecurityTokenService.cs (6)
465
expires =
DateTimeUtil
.Add(created, _securityTokenServiceConfiguration.DefaultTokenLifetime);
484
expires =
DateTimeUtil
.Add(created, _securityTokenServiceConfiguration.DefaultTokenLifetime);
499
if (
DateTimeUtil
.Add(
DateTimeUtil
.ToUniversalTime(expires), _securityTokenServiceConfiguration.MaxClockSkew) < utcNow)
505
if (
DateTimeUtil
.ToUniversalTime(created) >
DateTimeUtil
.Add(utcNow + TimeSpan.FromDays(1), _securityTokenServiceConfiguration.MaxClockSkew))
System\IdentityModel\Tokens\Saml2Assertion.cs (1)
138
set { this.issueInstant =
DateTimeUtil
.ToUniversalTime(value); }
System\IdentityModel\Tokens\Saml2AuthenticationStatement.cs (3)
44
this.authnInstant =
DateTimeUtil
.ToUniversalTime(authenticationInstant);
75
set { this.authnInstant =
DateTimeUtil
.ToUniversalTime(value); }
96
set { this.sessionNotOnOrAfter =
DateTimeUtil
.ToUniversalTime(value); }
System\IdentityModel\Tokens\Saml2Conditions.cs (2)
52
value =
DateTimeUtil
.ToUniversalTime(value);
80
value =
DateTimeUtil
.ToUniversalTime(value);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (6)
1562
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew) < conditions.NotBefore.Value)
1568
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew.Negate()) >= conditions.NotOnOrAfter.Value)
1696
Configuration.Caches.TokenReplayCache.AddOrUpdate(key, token,
DateTimeUtil
.Add(this.GetTokenReplayCacheEntryExpirationTime(samlToken), Configuration.MaxClockSkew));
1737
DateTime maximumExpirationTime =
DateTimeUtil
.Add(DateTime.UtcNow, Configuration.TokenReplayCacheExpirationPeriod);
2116
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew) < confirmationData.NotBefore.Value)
2122
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew.Negate()) >= confirmationData.NotOnOrAfter.Value)
System\IdentityModel\Tokens\Saml2SubjectConfirmationData.cs (2)
73
set { this.notBefore =
DateTimeUtil
.ToUniversalTime(value); }
82
set { this.notOnOrAfter =
DateTimeUtil
.ToUniversalTime(value); }
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (6)
843
Configuration.Caches.TokenReplayCache.AddOrUpdate(key, token,
DateTimeUtil
.Add(GetTokenReplayCacheEntryExpirationTime(samlToken), Configuration.MaxClockSkew));
864
DateTime maximumExpirationTime =
DateTimeUtil
.Add(DateTime.UtcNow, Configuration.TokenReplayCacheExpirationPeriod);
894
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew) < conditions.NotBefore)
901
&&
DateTimeUtil
.Add(now, Configuration.MaxClockSkew.Negate()) >= conditions.NotOnOrAfter)
1983
if (conditions.NotBefore !=
DateTimeUtil
.GetMinValue(DateTimeKind.Utc) &&
1992
if (conditions.NotOnOrAfter !=
DateTimeUtil
.GetMaxValue(DateTimeKind.Utc) &&
System\IdentityModel\Tokens\SessionSecurityToken.cs (6)
83
: this(claimsPrincipal, null, DateTime.UtcNow,
DateTimeUtil
.AddNonNegative(DateTime.UtcNow, lifetime))
93
: this(claimsPrincipal, context, DateTime.UtcNow,
DateTimeUtil
.AddNonNegative(DateTime.UtcNow, SessionSecurityTokenHandler.DefaultTokenLifetime))
157
: this(claimsPrincipal, contextId, context, endpointId, validFrom,
DateTimeUtil
.AddNonNegative(validFrom, lifetime), key)
244
validFromEffective =
DateTimeUtil
.ToUniversalTime(validFrom.Value);
253
validToEffective =
DateTimeUtil
.ToUniversalTime(validTo.Value);
257
validToEffective =
DateTimeUtil
.Add(validFromEffective, SessionSecurityTokenHandler.DefaultTokenLifetime);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
689
DateTime maxTime =
DateTimeUtil
.Add(utcNow, Configuration.MaxClockSkew);
690
DateTime minTime =
DateTimeUtil
.Add(utcNow, -Configuration.MaxClockSkew);