예제 #1
0
 public override void OnAbort()
 {
     if (this.clientTokenProvider != null)
     {
         SecurityUtils.AbortTokenProviderIfRequired(this.ClientTokenProvider);
         this.clientTokenProvider = null;
     }
     if (this.serverTokenAuthenticator != null)
     {
         SecurityUtils.AbortTokenAuthenticatorIfRequired(this.ServerTokenAuthenticator);
         this.serverTokenAuthenticator = null;
     }
     base.OnAbort();
 }
예제 #2
0
 public override void OnAbort()
 {
     if (!this.ActAsInitiator)
     {
         if (this.recipientAsymmetricTokenProvider != null)
         {
             SecurityUtils.AbortTokenProviderIfRequired(this.recipientAsymmetricTokenProvider);
         }
         if (this.recipientCryptoTokenAuthenticator != null)
         {
             SecurityUtils.AbortTokenAuthenticatorIfRequired(this.recipientCryptoTokenAuthenticator);
         }
     }
     base.OnAbort();
 }
예제 #3
0
 public override void OnAbort()
 {
     if (this.Factory.ActAsInitiator)
     {
         SecurityTokenProvider provider = this.initiatorSymmetricTokenProvider ?? this.initiatorAsymmetricTokenProvider;
         if (provider != null)
         {
             SecurityUtils.AbortTokenProviderIfRequired(provider);
         }
         if (this.initiatorTokenAuthenticator != null)
         {
             SecurityUtils.AbortTokenAuthenticatorIfRequired(this.initiatorTokenAuthenticator);
         }
     }
     base.OnAbort();
 }
예제 #4
0
 public virtual void OnAbort()
 {
     if (!_actAsInitiator)
     {
         foreach (SupportingTokenAuthenticatorSpecification spec in _channelSupportingTokenAuthenticatorSpecification)
         {
             SecurityUtils.AbortTokenAuthenticatorIfRequired(spec.TokenAuthenticator);
         }
         foreach (string action in _scopedSupportingTokenAuthenticatorSpecification.Keys)
         {
             ICollection <SupportingTokenAuthenticatorSpecification> supportingAuthenticators = _scopedSupportingTokenAuthenticatorSpecification[action];
             foreach (SupportingTokenAuthenticatorSpecification spec in supportingAuthenticators)
             {
                 SecurityUtils.AbortTokenAuthenticatorIfRequired(spec.TokenAuthenticator);
             }
         }
     }
 }
예제 #5
0
        public virtual void OnAbort()
        {
            if (this.actAsInitiator)
            {
                return;
            }
#if FEATURE_CORECLR
            throw new NotImplementedException("scopedSupportingTokenAuthenticatorSpecification not supported in .NET Core");
#else
            foreach (SupportingTokenAuthenticatorSpecification authenticatorSpecification in (IEnumerable <SupportingTokenAuthenticatorSpecification>) this.channelSupportingTokenAuthenticatorSpecification)
            {
                SecurityUtils.AbortTokenAuthenticatorIfRequired(authenticatorSpecification.TokenAuthenticator);
            }
            foreach (string key in this.scopedSupportingTokenAuthenticatorSpecification.Keys)
            {
                foreach (SupportingTokenAuthenticatorSpecification authenticatorSpecification in (IEnumerable <SupportingTokenAuthenticatorSpecification>) this.scopedSupportingTokenAuthenticatorSpecification[key])
                {
                    SecurityUtils.AbortTokenAuthenticatorIfRequired(authenticatorSpecification.TokenAuthenticator);
                }
            }
#endif
        }