38 references to SR
System.ServiceModel.Federation (38)
System\ServiceModel\Federation\WSTrustChannel.cs (10)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(LogHelper.FormatInvariant(
SR
.GetResourceString(
SR
.IRequestChannelMustBeCreated), requestChannel.State)));
98
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.GetResourceString(
SR
.WsTrustVersionNotSupported, trustRequest.WsTrustVersion.ToString())));
109
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.GetResourceString(
SR
.RequestTypeNotSupported, trustRequest.RequestType)));
142
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
SR
.GetResourceString(
SR
.WsTrustVersionNotSupported, trustRequest.WsTrustVersion.ToString())));
371
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(
SR
.Format(
SR
.TokenProviderUnableToGetToken, string.IsNullOrEmpty(Address) ? ToString() : Address)));
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (4)
64
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new ArgumentException(LogHelper.FormatInvariant(
SR
.GetResourceString(
SR
.IssuedSecurityTokenParametersIncorrectType), issuedSecurityTokenParameters), nameof(tokenRequirement)), EventLevel.Error);
322
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new NotSupportedException(LogHelper.FormatInvariant(
SR
.GetResourceString(
SR
.WsTrustVersionNotSupported), MessageSecurityVersion.TrustVersion)), EventLevel.Error);
System\ServiceModel\Federation\WsTrustTokenParameters.cs (4)
128
? throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new ArgumentOutOfRangeException(nameof(value), LogHelper.FormatInvariant(
SR
.GetResourceString(
SR
.IssuedTokenRenewalThresholdPercentageIncorrect), value)), EventLevel.Error)
156
? throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new ArgumentOutOfRangeException(nameof(value), LogHelper.FormatInvariant(
SR
.GetResourceString(
SR
.MaxIssuedTokenCachingTimeMustBeGreaterThanTimeSpanZero), value)), EventLevel.Error)
System\ServiceModel\Federation\WSTrustUtilities.cs (20)
47
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new NotSupportedException(
SR
.GetResourceString(
SR
.EncryptedKeysForProofTokensNotSupported)), EventLevel.Error);
53
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.BearerKeyShouldNotIincludeAProofToken)), EventLevel.Error);
64
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.RSTRProofTokenShouldNotHaveAComputedKeyAlgorithmOrIssuerEntropy)), EventLevel.Error);
73
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.ComputedKeyProofTokensAreOnlySupportedWithSymmetricKeyTypes)), EventLevel.Error);
81
throw DiagnosticUtility.ExceptionUtility.ThrowHelper( new NotSupportedException(
SR
.GetResourceString(
SR
.ProtectedKeyEntropyIsNotSupported)), EventLevel.Error);
86
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.ComputedKeyProofTokensRequireIssuerToSupplyKeyMaterialViaEntropy)), EventLevel.Error);
90
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.ComputedKeyProofTokensRequireRequesterToSupplyKeyMaterialViaEntropy)), EventLevel.Error);
101
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidOperationException(
SR
.GetResourceString(
SR
.NoKeySizeProvided)), EventLevel.Error);
107
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new NotSupportedException(
SR
.GetResourceString(
SR
.OnlyPSHA1ComputedKeysAreSupported)), EventLevel.Error);
115
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new NotSupportedException(
SR
.GetResourceString(
SR
.ProtectedKeyEntropyIsNotSupported)), EventLevel.Error);