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(); }
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(); }
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(); }
public virtual void OnAbort() { if (SecurityProtocolFactory.ActAsInitiator) { foreach (SupportingTokenProviderSpecification spec in ChannelSupportingTokenProviderSpecification) { SecurityUtils.AbortTokenProviderIfRequired(spec.TokenProvider); } foreach (string action in ScopedSupportingTokenProviderSpecification.Keys) { ICollection <SupportingTokenProviderSpecification> supportingProviders = ScopedSupportingTokenProviderSpecification[action]; foreach (SupportingTokenProviderSpecification spec in supportingProviders) { SecurityUtils.AbortTokenProviderIfRequired(spec.TokenProvider); } } } }