42 references to ThrowHelperWarning
System.ServiceModel.Primitives (42)
System\IdentityModel\CryptoHelper.cs (4)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidKeyedHashAlgorithm, algorithm))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidHashAlgorithm, algorithm))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm)));
System\IdentityModel\Selectors\SecurityTokenResolver.cs (3)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifier))); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifierClause))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveKeyReference, keyIdentifierClause)));
System\ServiceModel\Channels\SecurityChannelFactory.cs (2)
453throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(faultException); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(faultException);
System\ServiceModel\Channels\ServiceChannel.cs (7)
955throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(fe); 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(exception); 1055throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ChannelTerminatedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1064throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityAccessDeniedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1082throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException<ExceptionDetail>(detail, fault.Reason, fault.Code, action)); 1084throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException(fault, action)); 1088throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ProtocolException(
System\ServiceModel\Security\IdentityVerifier.cs (2)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(errorString, identity, serviceReference))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(e);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (6)
477throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedKey, _primaryTokenParameters))); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedWrappedKey, _wrappingTokenParameters))); 572throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyLimitExceeded, _maxDerivedKeys))); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.UnknownTokenAuthenticatorUsedInTokenProcessing, usedTokenAuthenticator))); 717throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.BasicTokenNotExpected)); 729throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.SignedSupportingTokenNotExpected));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (6)
884throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.MessageSecurityVerificationFailed, e)); 1004throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SRP.SessionKeyRenewalNotSupported)); 1049throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SRP.UnableToRenewSessionKey)); 1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new CommunicationException(SRP.OutputNotExpected)); 1275throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityCloseTimeout, timeout))); 1283throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityOutputSessionCloseTimeout, timeoutHelper.OriginalTimeout)));
System\ServiceModel\Security\SecurityTimestamp.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ArgumentOutOfRangeException(nameof(creationTimeUtc), SRP.CreationTimeUtcIsAfterExpiryTime));
System\ServiceModel\Security\SecurityUtils.cs (2)
326throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.MultipleMatchingCryptosFound, typeof(T).ToString()))); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.CannotFindMatchingCrypto, derivationAlgorithm)));
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (2)
218throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenOffsetTooHigh, offset, maxOffset))); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenGenerationAndLengthTooHigh, generation, length, maxOffset)));
System\ServiceModel\Security\WSSecureConversation.cs (3)
196throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenLabelTooLong, label.Length, _maxKeyDerivationLabelLength))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenNonceTooLong, nonce.Length, _maxKeyDerivationNonceLength))); 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityContextTokenValidationException(SRP.Format(SRP.SecurityContextNotRegistered, contextId, generation)));
System\ServiceModel\Security\WSTrust.cs (4)
363throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.UnknownComputedKeyAlgorithm, computedKeyAlgorithm))); 1251throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.InvalidKeyLengthRequested, keySize))); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, mode))); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, mode)));