19 references to Add
System.IdentityModel (19)
System\IdentityModel\BoundedCache.cs (1)
191
_nextPurgeTime = DateTimeUtil.
Add
(currentTime, _purgeInterval);
System\IdentityModel\DateTimeUtil.cs (1)
49
return
Add
(time, timespan);
System\IdentityModel\SecurityTokenService.cs (4)
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\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\SamlSecurityTokenHandler.cs (4)
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)
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
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);