3 writes to Configuration
System.IdentityModel (2)
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (2)
693
handler.
Configuration
= this.configuration;
720
handler.
Configuration
= null;
System.ServiceModel (1)
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (1)
280
sessionTokenHandler.
Configuration
= _securityTokenHandlerCollection.Configuration;
101 references to Configuration
System.IdentityModel (88)
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (3)
124
if (this.
Configuration
== null)
129
if (this.
Configuration
.ServiceTokenResolver == null)
147
this.
Configuration
.ServiceTokenResolver.TryResolveSecurityKey(clause, out decryptionKey);
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (2)
82
if (this.
Configuration
== null)
101
if (this.
Configuration
.SaveBootstrapContext)
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (2)
160
if (this.
Configuration
== null)
174
if (this.
Configuration
.SaveBootstrapContext)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (34)
142
if (
Configuration
!= null)
144
return
Configuration
.CertificateValidator;
324
if (this.
Configuration
== null)
345
SamlSecurityTokenRequirement.ShouldEnforceAudienceRestriction(this.
Configuration
.AudienceRestriction.AudienceMode, samlToken));
351
if (this.
Configuration
.DetectReplayedTokens)
385
if (this.
Configuration
.SaveBootstrapContext)
627
if (
Configuration
== null)
632
if (
Configuration
.IssuerTokenResolver == null)
637
if (
Configuration
.ServiceTokenResolver == null)
644
ReadOnlyCollection<SecurityKey> keys = this.ResolveSecurityKeys(assertion,
Configuration
.ServiceTokenResolver);
648
this.TryResolveIssuerToken(assertion,
Configuration
.IssuerTokenResolver, out issuerToken);
1562
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew) < conditions.NotBefore.Value)
1568
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew.Negate()) >= conditions.NotOnOrAfter.Value)
1586
if (this.
Configuration
== null || this.
Configuration
.AudienceRestriction.AllowedAudienceUris.Count == 0)
1599
SamlSecurityTokenRequirement.ValidateAudienceRestriction(this.
Configuration
.AudienceRestriction.AllowedAudienceUris, audienceRestriction.Audiences);
1656
if (
Configuration
== null)
1661
if (
Configuration
.Caches.TokenReplayCache == null)
1688
if (
Configuration
.Caches.TokenReplayCache.Contains(key))
1696
Configuration
.Caches.TokenReplayCache.AddOrUpdate(key, token, DateTimeUtil.Add(this.GetTokenReplayCacheEntryExpirationTime(samlToken),
Configuration
.MaxClockSkew));
1737
DateTime maximumExpirationTime = DateTimeUtil.Add(DateTime.UtcNow,
Configuration
.TokenReplayCacheExpirationPeriod);
1746
new SecurityTokenValidationException(SR.GetString(SR.ID1069, tokenExpiration.Value.ToString(),
Configuration
.TokenReplayCacheExpirationPeriod.ToString())));
2064
if (this.
Configuration
== null)
2069
if (this.
Configuration
.IssuerNameRegistry == null)
2074
string issuer = this.
Configuration
.IssuerNameRegistry.GetIssuerName(samlToken.IssuerToken, assertion.Issuer.Value);
2116
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew) < confirmationData.NotBefore.Value)
2122
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew.Negate()) >= confirmationData.NotOnOrAfter.Value)
2593
if (this.
Configuration
== null)
2598
if (this.
Configuration
.IssuerTokenResolver == null)
2603
if (this.
Configuration
.ServiceTokenResolver == null)
2619
Configuration
.ServiceTokenResolver,
2647
EnvelopedSignatureReader realReader = new EnvelopedSignatureReader(plaintextReader, wrappedSerializer, this.
Configuration
.IssuerTokenResolver, false, false, false);
4706
Configuration
.ServiceTokenResolver,
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (31)
744
if (
Configuration
!= null)
746
return
Configuration
.CertificateValidator;
795
if (
Configuration
== null)
800
if (
Configuration
.Caches.TokenReplayCache == null)
828
if (
Configuration
.Caches.TokenReplayCache.Contains(key))
843
Configuration
.Caches.TokenReplayCache.AddOrUpdate(key, token, DateTimeUtil.Add(GetTokenReplayCacheEntryExpirationTime(samlToken),
Configuration
.MaxClockSkew));
864
DateTime maximumExpirationTime = DateTimeUtil.Add(DateTime.UtcNow,
Configuration
.TokenReplayCacheExpirationPeriod);
870
new SecurityTokenValidationException(SR.GetString(SR.ID1069, token.ValidTo.ToString(),
Configuration
.TokenReplayCacheExpirationPeriod.ToString())));
894
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew) < conditions.NotBefore)
901
&& DateTimeUtil.Add(now,
Configuration
.MaxClockSkew.Negate()) >= conditions.NotOnOrAfter)
913
if (this.
Configuration
== null || this.
Configuration
.AudienceRestriction.AllowedAudienceUris.Count == 0)
934
_samlSecurityTokenRequirement.ValidateAudienceRestriction(this.
Configuration
.AudienceRestriction.AllowedAudienceUris, audienceRestriction.Audiences);
970
if (this.
Configuration
== null)
990
this.ValidateConditions(samlToken.Assertion.Conditions, _samlSecurityTokenRequirement.ShouldEnforceAudienceRestriction(this.
Configuration
.AudienceRestriction.AudienceMode, samlToken));
994
if (this.
Configuration
.DetectReplayedTokens)
1032
if (this.
Configuration
.SaveBootstrapContext)
1123
if (this.
Configuration
== null)
1128
if (this.
Configuration
.IssuerNameRegistry == null)
1136
issuer = this.
Configuration
.IssuerNameRegistry.GetIssuerName(samlSecurityToken.Assertion.SigningToken, samlSecurityToken.Assertion.Issuer);
1534
if (
Configuration
== null)
1539
if (
Configuration
.IssuerTokenResolver == null)
1550
TryResolveIssuerToken(assertion,
Configuration
.IssuerTokenResolver, out token);
1739
if (this.
Configuration
== null)
1744
if (this.
Configuration
.IssuerTokenResolver == null)
1751
EnvelopedSignatureReader wrappedReader = new EnvelopedSignatureReader(reader, new WrappedSerializer(this, assertion), this.
Configuration
.IssuerTokenResolver, false, true, false);
2369
subject.Crypto = new SecurityKeyElement(subject.KeyIdentifier, this.
Configuration
.ServiceTokenResolver);
3355
if (this.
Configuration
== null)
3360
if (this.
Configuration
.ServiceTokenResolver == null)
3368
if (this.
Configuration
.ServiceTokenResolver.TryResolveSecurityKey(clause, out key))
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (1)
691
if (handler.
Configuration
== null)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (7)
243
if (this.
Configuration
== null)
250
if (this.
Configuration
.SaveBootstrapContext)
287
if (this.
Configuration
== null)
679
if (this.
Configuration
== null)
684
Fx.Assert(this.
Configuration
!= null, SR.GetString(SR.ID8027));
689
DateTime maxTime = DateTimeUtil.Add(utcNow,
Configuration
.MaxClockSkew);
690
DateTime minTime = DateTimeUtil.Add(utcNow, -
Configuration
.MaxClockSkew);
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (2)
66
if (this.
Configuration
== null)
107
if (this.
Configuration
.SaveBootstrapContext)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (6)
252
if (
Configuration
!= null)
254
return
Configuration
.CertificateValidator;
509
if (this.
Configuration
== null)
527
if (this.
Configuration
.IssuerNameRegistry == null)
532
string issuer = X509Util.GetCertificateIssuerName(x509Token.Certificate, this.
Configuration
.IssuerNameRegistry);
581
if (this.
Configuration
.SaveBootstrapContext)
System.ServiceModel (13)
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (11)
186
if ( saml11SecurityTokenHandler.
Configuration
== null )
193
outOfBandTokenResolver = saml11SecurityTokenHandler.
Configuration
.ServiceTokenResolver;
205
if ( saml2SecurityTokenHandler.
Configuration
== null )
212
outOfBandTokenResolver = saml2SecurityTokenHandler.
Configuration
.ServiceTokenResolver;
285
sessionTokenHandler.
Configuration
.MaxClockSkew = ServiceCredentials.IdentityConfiguration.MaxClockSkew;
513
if ( saml11SecurityTokenHandler != null && saml11SecurityTokenHandler.
Configuration
== null )
518
if ( saml2SecurityTokenHandler != null && saml2SecurityTokenHandler.
Configuration
== null )
536
resolvers.Add( saml11SecurityTokenHandler.
Configuration
.ServiceTokenResolver );
537
resolvers.Add( saml2SecurityTokenHandler.
Configuration
.ServiceTokenResolver );
549
outOfBandTokenResolver = saml2SecurityTokenHandler.
Configuration
.ServiceTokenResolver;
560
outOfBandTokenResolver = saml11SecurityTokenHandler.
Configuration
.ServiceTokenResolver;
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (2)
71
if ( _wrappedX509SecurityTokenHandler.
Configuration
!= null )
73
shouldSaveBootstrapContext = _wrappedX509SecurityTokenHandler.
Configuration
.SaveBootstrapContext;