2425 references to DiagnosticUtility
System.IdentityModel (2425)
System\IdentityModel\Asn1IntegerConverter.cs (3)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("asn1"); 21throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("asn1", SR.GetString(SR.LengthOfArrayToConvertMustGreaterThanZero))); 184DiagnosticUtility.DebugAssert(borrow == 0, "");
System\IdentityModel\AsyncResult.cs (5)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID4001), "result")); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4002))); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AsynchronousOperationException(SR.GetString(SR.ID4005))); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AsynchronousOperationException(SR.GetString(SR.ID4003), unhandledException));
System\IdentityModel\BoundedCache.cs (7)
47throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("capacity", capacity, SR.GetString(SR.ID0002)); 52throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("purgeInterval", purgeInterval, SR.GetString(SR.ID0016)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyComparer"); 90throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID0002)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new LimitExceededException(SR.GetString(SR.ID0021, _capacity))); 143throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("size", size, SR.GetString(SR.ID0002)); 230throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID0016));
System\IdentityModel\BufferManager.cs (4)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferPoolSize", 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("bufferSize", bufferSize, 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("buffer");
System\IdentityModel\CanonicalizationDriver.cs (3)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream"); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NoInputIsSetForCanonicalization)));
System\IdentityModel\CipherDataElement.cs (2)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 45throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4188 ) );
System\IdentityModel\Claims\AuthorizationContext.cs (5)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "principal" ); 40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "resource" ); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "principal" ); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "resource" ); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "action" );
System\IdentityModel\Claims\Claim.cs (16)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimType"); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SR.GetString(SR.ArgumentCannotBeEmptyString)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("right"); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("right", SR.GetString(SR.ArgumentCannotBeEmptyString)); 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dns"); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sid"); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("hash"); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("mailAddress"); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rsa"); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("spn"); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("thumbprint"); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("upn"); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("uri"); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sid"); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("x500DistinguishedName");
System\IdentityModel\Claims\ClaimComparer.cs (3)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimType"); 152throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 345DiagnosticUtility.TraceHandledException(e, TraceEventType.Information);
System\IdentityModel\Claims\ClaimsAuthenticationManager.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Claims\ClaimsAuthorizationManager.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Claims\ClaimSet.cs (3)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("comparer"); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim");
System\IdentityModel\Claims\ClaimsHelper.cs (3)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4067, 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID1053))); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID1054)));
System\IdentityModel\Claims\DefaultClaimSet.cs (3)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuer"); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claims");
System\IdentityModel\Claims\WindowsClaimSet.cs (4)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windowsIdentity"); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode)); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode));
System\IdentityModel\Claims\X509CertificateClaimSet.cs (5)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 334throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("x500DistinguishedName"); 447DiagnosticUtility.TraceHandledException( 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Configuration\IdentityConfiguration.cs (17)
80throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7027)); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identityConfigurationName"); 122throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7027)); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 245throw DiagnosticUtility.ThrowHelperConfigurationError( 258throw DiagnosticUtility.ThrowHelperConfigurationError( 271throw DiagnosticUtility.ThrowHelperConfigurationError( 286throw DiagnosticUtility.ThrowHelperConfigurationError( 306throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7009)); 376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4280))); 503throw DiagnosticUtility.ThrowHelperConfigurationError(serviceElement, handlerElementCollection.Name, inner); 554throw DiagnosticUtility.ThrowHelperConfigurationError(element, ConfigurationStrings.MaximumClockSkew, inner); 721throw DiagnosticUtility.ThrowHelperConfigurationError(element, ConfigurationStrings.MaximumClockSkew, inner); 798throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 868throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Configuration\IdentityConfigurationElementCollection.cs (5)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 41throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7013)); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 63throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7012, name)); 76throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7029, "<identityConfiguation>", name));
System\IdentityModel\Configuration\IdentityModelCaches.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Configuration\SecurityTokenHandlerSetElementCollection.cs (1)
46throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7029, "<securityTokenHandlers>", name));
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (14)
158throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID2069)); 183throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2073)); 188throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2074, stsType, typeof(STS))); 210throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", SR.GetString(SR.ID0002)); 234throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", SR.GetString(SR.ID0002)); 272throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("value"); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID2015, value)); 314throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", SR.GetString(SR.ID0016)); 350throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 371throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 392throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 413throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 434throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Configuration\StandardRuntimeEnumValidator.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, enumType));
System\IdentityModel\Configuration\TimeSpanOrInfiniteConverter.cs (2)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID8028, typeof(TimeSpan), value.GetType()));
System\IdentityModel\Configuration\TypeResolveHelper.cs (5)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customTypeElement"); 23throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TypeLoadException(SR.GetString(SR.ID8030, customTypeElement.ElementAsXml.OuterXml))); 30throw DiagnosticUtility.ThrowHelperConfigurationError( 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ID0012, customType.AssemblyQualifiedName), inner)); 81throw DiagnosticUtility.ThrowHelperConfigurationError(customTypeElement, ConfigurationStrings.Type, inner);
System\IdentityModel\CryptoHelper.cs (36)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "requestorEntropy" ); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "issuerEntropy" ); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "senderEntropy" ); 231throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new CryptographicException( SR.GetString( SR.ID6048, _maxKeyIterations ) ) ); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new CryptographicException( SR.GetString( SR.ID6048, _maxKeyIterations ) ) ); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentOutOfRangeException( "keySizeInBits", SR.GetString( SR.ID6033, keySizeInBits ) ) ); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentException( SR.GetString( SR.ID6002, keySizeInBits ), "keySizeInBits" ) ); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("secret"); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("secret", SR.GetString(SR.ID6031)); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "algorithm", SR.GetString( SR.ID6037, SecurityAlgorithms.HmacSha1Signature ) ); 446throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm, SecurityAlgorithms.Aes128Encryption))); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm, algorithm))); 475throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedEncryptionAlgorithm, algorithm))); 491throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm, algorithm))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedEncryptionAlgorithm, algorithm))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidHashAlgorithm, algorithm))); 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 555throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidKeyedHashAlgorithm, algorithm))); 566throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CryptoAlgorithmIsNotFipsCompliant, algorithm))); 568throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 584throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedKeyDerivationAlgorithm, algorithm))); 600throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm, algorithm))); 612throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedEncryptionAlgorithm, algorithm))); 641throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentOutOfRangeException( "sizeInBits", SR.GetString( SR.ID6033, sizeInBits ) ) ); 645throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentException( SR.GetString( SR.ID6002, sizeInBits ), "sizeInBits" ) ); 671throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm, algorithm))); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedEncryptionAlgorithm, algorithm))); 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.InvalidCustomKeyWrapAlgorithm, algorithm))); 1038throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedKeyWrapAlgorithm, algorithm))); 1057throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.InvalidCustomKeyWrapAlgorithm, algorithm))); 1077throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnsupportedKeyWrapAlgorithm, algorithm))); 1091throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer")); 1095throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length))); 1099throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length - count))); 1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("algorithm")); 1240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("algorithm"));
System\IdentityModel\DateTimeUtil.cs (1)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2082)));
System\IdentityModel\DeflateCookieTransform.cs (6)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "encoded" ); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "encoded", SR.GetString( SR.ID6045 ) ); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new SecurityTokenException( SR.GetString( SR.ID1068, MaxDecompressedSize ) ) ); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "value" ); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "value", SR.GetString( SR.ID6044 ) ); 109if ( DiagnosticUtility.ShouldTrace( TraceEventType.Information ) )
System\IdentityModel\DelegatingXmlDictionaryReader.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerReader");
System\IdentityModel\DelegatingXmlDictionaryWriter.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerWriter");
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (4)
127if (DiagnosticUtility.DiagnosticTrace != null && 128DiagnosticUtility.DiagnosticTrace.TraceSource != null && 129DiagnosticUtility.DiagnosticTrace.ShouldLogPii && 130DiagnosticUtility.ShouldTraceVerbose)
System\IdentityModel\Diagnostics\TraceUtility.cs (3)
47if ( DiagnosticUtility.ShouldTrace( severity ) ) 54DiagnosticUtility.DiagnosticTrace.TraceEvent( severity, traceCode, msdnTraceCode, traceDescription, extendedData, exception, activityId, source ); 60if ( DiagnosticUtility.ShouldTrace( eventType ) )
System\IdentityModel\EncryptedDataElement.cs (8)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "algorithm" ); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID6000 ) ) ); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID6019, cipherText.Length - offset, iv.Length ) ) ); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 138throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4193 ) ); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "writer" ); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "securityTokenSerializer" ); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID6001 ) ) );
System\IdentityModel\EncryptedKeyElement.cs (7)
70throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4189 ) ); 75if ( DiagnosticUtility.ShouldTraceWarning ) 97throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4190 ) ); 102if ( DiagnosticUtility.ShouldTraceWarning ) 112throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4191 ) ); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 138throw DiagnosticUtility.ThrowHelperXml( reader, SR.GetString( SR.ID4187 ) );
System\IdentityModel\EncryptedTypeElement.cs (7)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 57throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("value"); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 121throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("value"); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\EncryptionMethodElement.cs (2)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 49if ( DiagnosticUtility.ShouldTraceWarning )
System\IdentityModel\EnvelopedSignatureReader.cs (8)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenSerializer"); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID3057))); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID3276))); 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.KeyIdentifierCannotCreateKey))); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\IdentityModel\EnvelopedSignatureTransform.cs (3)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedLastTransform))); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AlgorithmMismatchForTransform)));
System\IdentityModel\EnvelopedSignatureWriter.cs (7)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerWriter"); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("signingCredentials"); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID0006), "referenceId")); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenSerializer"); 99if (DiagnosticUtility.ShouldTraceVerbose) 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID6029))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID6030)));
System\IdentityModel\ExclusiveCanonicalizationTransform.cs (4)
109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID0001, dictionaryManager.XmlSignatureDictionary.Algorithm, reader.LocalName))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID6005, algorithm)));
System\IdentityModel\HashStream.cs (5)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("hash"); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\IdentityModel\IdentityModelDictionary.cs (2)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key")); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("key"));
System\IdentityModel\IdentityModelStringsVersion1.cs (1)
300DiagnosticUtility.DebugAssert(index >= 0 && index < this.Count, "The index is out of range. It should be greater than or equal to 0 and less than" + this.Count.ToString());
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (2)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "xmlDictionaryReaderQuotas" );
System\IdentityModel\ImmutableCollection.cs (4)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly)));
System\IdentityModel\KeyInfo.cs (3)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "value" ); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "reader" ); 78if ( DiagnosticUtility.ShouldTraceWarning )
System\IdentityModel\Metadata\DisplayClaim.cs (1)
151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimType");
System\IdentityModel\Metadata\EncryptionMethod.cs (2)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("algorithm"); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Metadata\EntityId.cs (1)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID3199));
System\IdentityModel\Metadata\LocalizedEntry.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Metadata\MetadataSerializer.cs (181)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenSerializer"); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("conactType"); 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.Use, keyType))); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 318throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3201, typeof(ContactType), contactType))); 422throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 440throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 449throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, WSAuthorizationConstants.Elements.ClaimType, claimType))); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, WSFederationMetadataConstants.Attributes.Optional, optionalString))); 505throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 563throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3200, Saml2MetadataConstants.Elements.EntityDescriptor))); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, WSFederationMetadataConstants.Attributes.FederationId, entity.FederationId))); 631throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("signingCredentials"); 640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4280))); 670throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ski"); 680throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID8029))); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inputReader"); 745throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3207, "xsi:type", Saml2MetadataConstants.Elements.RoleDescriptor, xsiType))); 752throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, prefix, ns))); 768throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3207, "xsi:type", Saml2MetadataConstants.Elements.RoleDescriptor, xsiType))); 773throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID0001, "xsi:type", Saml2MetadataConstants.Elements.RoleDescriptor))); 821throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 837throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString( 889throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 898throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.Binding, binding))); 906throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.Location, location))); 914throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.EndpointIndex, indexStr))); 925throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.ResponseLocation, responseLocation))); 940throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.EndpointIsDefault, isDefaultString))); 979throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1043throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3200, XmlSignatureConstants.Elements.KeyInfo))); 1058throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1070throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, LanguageLocalName, "null"))); 1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, LanguageLocalName, lang))); 1102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3200, elementName))); 1117throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, LanguageLocalName, "null"))); 1133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, LanguageLocalName, lang))); 1147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, elementName, uriContent))); 1166throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3200, elementName))); 1181throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream"); 1208throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1212throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenResolver"); 1234throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1238throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenResolver"); 1253throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3260))); 1269throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1323throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1332throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.Binding, binding))); 1340throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.Location, location))); 1350throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.ResponseLocation, responseLocation))); 1385throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1389throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 1393throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.ProtocolsSupported"); 1403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.ValidUntil, validUntilString))); 1415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.ErrorUrl, errorUrlString))); 1424throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, Saml2MetadataConstants.Attributes.ProtocolsSupported, protocols))); 1448throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1452throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 1456throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.Contacts"); 1460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.Keys"); 1496throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1565throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString( 1593throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString( 1656throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1660throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ssoDescriptor"); 1685throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID0014, Saml2MetadataConstants.Elements.NameIDFormat))); 1706throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1710throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 1741throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1745throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 1749throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.TargetScopes"); 1753throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.TargetScopes"); 1757throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.TokenTypesOffered"); 1843throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3202, WSFederationMetadataConstants.Elements.TokenType, tokenType))); 1895throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1900throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("appService"); 1905throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("appService.Endpoints"); 1910throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("appService.PassiveRequestorEndpoints"); 1954throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1959throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contactPerson"); 1964throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contactPerson.EmailAddresses"); 1969throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contactPerson.TelephoneNumbers"); 1975throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.ContactType))); 2045throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2050throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpoint"); 2055throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 2061throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.Binding))); 2068throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.Location))); 2097throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, WSAuthorizationConstants.Elements.ClaimType))); 2102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID0014, claim.ClaimType))); 2136throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inputWriter"); 2141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entitiesDescriptor"); 2146throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entitiesDescriptor.ChildEntities"); 2151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entitiesDescriptor.ChildEntityGroups"); 2168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.EntitiesDescriptor))); 2178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, WSFederationMetadataConstants.Attributes.FederationId))); 2223throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inputWriter"); 2228throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entityDescriptor"); 2233throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entityDescriptor.Contacts"); 2238throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entityDescriptor.RoleDescriptors"); 2255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.EntityId))); 2275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.RoleDescriptor))); 2331throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2336throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("idpssoDescriptor"); 2341throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("idpssoDescriptor.SupportedAttributes"); 2346throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("idpssoDescriptor.SingleSignOnServices"); 2364throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.SingleSignOnService))); 2371throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3249, Saml2MetadataConstants.Attributes.ResponseLocation))); 2400throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2405throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("indexedEP"); 2410throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 2416throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.Binding))); 2423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.Location))); 2430throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.EndpointIndex))); 2460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2465throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyDescriptor"); 2478throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, XmlSignatureConstants.Elements.KeyInfo))); 2490throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.Algorithm))); 2495throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID0014, Saml2MetadataConstants.Attributes.Algorithm))); 2519throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2524throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 2529throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 2534throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name.Name"); 2540throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, LanguageLocalName))); 2561throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2566throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("uri"); 2571throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 2577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, LanguageLocalName))); 2597throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream"); 2602throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("metadata"); 2621throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2626throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("metadata"); 2642throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2647throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("metadataBase"); 2660throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.EntitiesDescriptor))); 2677throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2682throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("organization"); 2687throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("organization.DisplayNames"); 2692throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("organization.Names"); 2697throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("organization.Urls"); 2704throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.OrganizationName))); 2715throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.OrganizationDisplayName))); 2726throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.OrganizationUrl))); 2750throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2755throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 2760throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.ProtocolsSupported"); 2779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Attributes.ProtocolsSupported))); 2804throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2809throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor"); 2814throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.Contacts"); 2819throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("roleDescriptor.Keys"); 2854throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2859throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenServiceDescriptor"); 2864throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenServiceDescriptor.Endpoints"); 2869throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenServiceDescriptor.PassiveRequestorEndpoints"); 2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, FederationMetadataConstants.Elements.SecurityTokenServiceEndpoint))); 2916throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2921throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("spssoDescriptor"); 2926throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("spssoDescriptor.AssertionConsumerService"); 2948throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, Saml2MetadataConstants.Elements.AssertionConsumerService))); 2981throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2986throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ssoDescriptor"); 2998throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3249, Saml2MetadataConstants.Attributes.ResponseLocation))); 3023throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID0014, Saml2MetadataConstants.Elements.NameIDFormat))); 3045throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3050throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wsDescriptor"); 3078throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3083throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wsDescriptor"); 3088throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wsDescriptor.TargetScopes"); 3093throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wsDescriptor.ClaimTypesOffered"); 3098throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wsDescriptor.TokenTypesOffered"); 3111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MetadataSerializationException(SR.GetString(SR.ID3203, WSAuthorizationConstants.Elements.ClaimType))); 3173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3197throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Name, Saml2Constants.Elements.Attribute)); 3208throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Namespace, Saml2Constants.Elements.Action)); 3282throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3287throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3338return DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4125), inner);
System\IdentityModel\Metadata\Organization.cs (3)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("names"); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("displayNames"); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("urls");
System\IdentityModel\MostlySingletonList.cs (2)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.ValueMustBeOne))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", SR.GetString(SR.ValueMustBeZero)));
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimSet");
System\IdentityModel\Policy\UnconditionalPolicy.cs (3)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuance"); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuances"); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\PreDigestedSignedInfo.cs (6)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException()); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); // sender side use only 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); // sender side use only 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); // sender side use only 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(id)); 301DiagnosticUtility.DebugAssert(XmlSignatureStrings.Prefix.Length == 0, "Update SignedInfoCanonicalFormWriter to match new XmlDSig prefix");
System\IdentityModel\Privilege.cs (10)
49DiagnosticUtility.DebugAssert(this.threadToken == null, ""); 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 163DiagnosticUtility.DebugAssert(!this.needToRevert, ""); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new PrivilegeNotHeldException(this.privilege)); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 209DiagnosticUtility.DebugAssert(!this.isImpersonating, ""); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error)); 247throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(error));
System\IdentityModel\ProtectedDataCookieTransform.cs (6)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "encoded" ); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "encoded", SR.GetString( SR.ID6045 ) ); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID1073 ), e) ); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "value" ); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "value", SR.GetString( SR.ID6044 ) ); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID1074 ), e ) );
System\IdentityModel\Protocols\WSTrust\AdditionalContext.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "items" );
System\IdentityModel\Protocols\WSTrust\BinaryExchange.cs (5)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "binaryData" ); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "valueType" ); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "encodingType" ); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "valueType", SR.GetString( SR.ID0013 ) ); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "encodingType", SR.GetString( SR.ID0013 ) );
System\IdentityModel\Protocols\WSTrust\ContextItem.cs (4)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name", SR.GetString(SR.ID0013)); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("scope", SR.GetString(SR.ID0013)); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013));
System\IdentityModel\Protocols\WSTrust\EndpointReference.cs (4)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("uri"); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("uri", SR.GetString(SR.ID0013)); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\Protocols\WSTrust\Entropy.cs (2)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "protectedKey" ); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "protectedKey" );
System\IdentityModel\Protocols\WSTrust\Lifetime.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentException( SR.GetString( SR.ID2000 ) ) );
System\IdentityModel\Protocols\WSTrust\RequestClaim.cs (1)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID0006), "claimType"));
System\IdentityModel\Protocols\WSTrust\RequestedProofToken.cs (2)
34DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("computedKeyAlgorithm"); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("protectedKey");
System\IdentityModel\Protocols\WSTrust\RequestedSecurityToken.cs (2)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenAsXml");
System\IdentityModel\Protocols\WSTrust\RequestSecurityTokenResponse.cs (1)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("message");
System\IdentityModel\Protocols\WSTrust\Status.cs (2)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("code"); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("code");
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (24)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm))); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3221))); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm))); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 198throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 208throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2064, WSTrust13Constants.ElementNames.SecondaryParameters))); 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2055))); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, WSTrust13Constants.ElementNames.ValidateTarget, WSTrust13Constants.NamespaceURI, typeof(SecurityTokenElement), elementValue)); 289throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 326throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\IdentityModel\Protocols\WSTrust\WSTrust13ResponseSerializer.cs (16)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("response"); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 178throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\Protocols\WSTrust\WSTrustFeb2005RequestSerializer.cs (16)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 141throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\Protocols\WSTrust\WSTrustFeb2005ResponseSerializer.cs (16)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("response"); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 140throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\Protocols\WSTrust\WSTrustMessage.cs (3)
235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("IssuedTokenEncryptionAlgorithm"); 264throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 287throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
System\IdentityModel\Protocols\WSTrust\WSTrustRequestSerializer.cs (3)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID3091))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID2072, reader.LocalName)));
System\IdentityModel\Protocols\WSTrust\WSTrustResponseSerializer.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr");
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationContext.cs (3)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenHandlerCollectionManager"); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenResolver"); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("useKeyTokenResolver");
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (203)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("requestSerializer"); 40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.RequestSecurityToken, trustConstants.NamespaceURI))); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, rst.TokenType))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3218))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3268))); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3219))); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3136, trustConstants.Attributes.Dialect, reader.LocalName, reader.NamespaceURI, rst.Claims.Dialect))); 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3009))); 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3258, rst.Claims.Dialect, WSAuthorizationConstants.Dialect))); 246throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3026))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3026))); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3151))); 302throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3264))); 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3152))); 325throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3265))); 331throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3153))); 352throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3154))); 367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3165))); 383throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3166))); 392throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3092, useKeySki))); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3155))); 413throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.NamespaceURI, rst.SignWith))); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.NamespaceURI, rst.EncryptWith))); 441throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.NamespaceURI, rst.AuthenticationType))); 452throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.NamespaceURI, rst.EncryptionAlgorithm))); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.NamespaceURI, rst.CanonicalizationAlgorithm))); 474throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.NamespaceURI, rst.SignatureAlgorithm))); 544throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3220))); 578throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3223, trustConstants.Elements.Participants, trustConstants.NamespaceURI, reader.LocalName, reader.NamespaceURI))); 609throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 616throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3223, WSAuthorizationConstants.Elements.AdditionalContext, WSAuthorizationConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 649throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3007, reader.LocalName, reader.NamespaceURI))); 656throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 661throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 666throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 671throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("requestSerializer"); 676throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 710throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rst"); 715throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 720throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 725throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("requestSerializer"); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 893throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 898throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 903throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 908throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 924throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3136, trustConstants.Attributes.Dialect, trustConstants.Elements.Claims, trustConstants.NamespaceURI, claims.Dialect))); 949throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3257, claims.Dialect, WSAuthorizationConstants.Dialect))); 982throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.NamespaceURI, (string)elementValue))); 993throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.NamespaceURI, (string)elementValue))); 1037throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.RenewTarget, trustConstants.NamespaceURI, typeof(SecurityTokenElement), elementValue)); 1077throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.NamespaceURI, (string)elementValue))); 1088throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, ((string)elementValue)))); 1101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3012))); 1106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3017))); 1121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.NamespaceURI, ((string)elementValue)))); 1132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.NamespaceURI, ((string)elementValue)))); 1143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.NamespaceURI, ((string)elementValue)))); 1154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.NamespaceURI, ((string)elementValue)))); 1222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Forwardable, trustConstants.NamespaceURI, typeof(bool), elementValue)); 1235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Delegatable, trustConstants.NamespaceURI, typeof(bool), elementValue)); 1256throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Renewing, trustConstants.NamespaceURI, typeof(Renewing), elementValue)); 1272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.CancelTarget, trustConstants.NamespaceURI, typeof(SecurityTokenElement), elementValue)); 1296throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Participant, trustConstants.NamespaceURI, typeof(Participants), elementValue)); 1325throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, WSAuthorizationConstants.Elements.AdditionalContext, WSAuthorizationConstants.Namespace, typeof(AdditionalContext), elementValue)); 1350throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3013, elementName, elementValue.GetType()))); 1357throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1362throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 1367throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("responseSerializer"); 1372throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 1377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.RequestSecurityTokenResponse, trustConstants.NamespaceURI))); 1404throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1409throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 1414throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 1419throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 1431throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3026))); 1441throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3026))); 1456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3154))); 1483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3158))); 1511throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3025))); 1522throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3025))); 1539throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3159))); 1556throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3160))); 1567throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, rstr.TokenType))); 1584throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.NamespaceURI, rstr.AuthenticationType))); 1595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.NamespaceURI, rstr.EncryptionAlgorithm))); 1606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.NamespaceURI, rstr.CanonicalizationAlgorithm))); 1617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.NamespaceURI, rstr.SignatureAlgorithm))); 1628throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.NamespaceURI, rstr.SignWith))); 1639throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.NamespaceURI, rstr.EncryptWith))); 1664throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3007, reader.LocalName, reader.NamespaceURI))); 1671throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("response"); 1676throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1681throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 1686throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("responseSerializer"); 1691throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 1722throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rstr"); 1727throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1732throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 1737throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("responseSerializer"); 1742throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 1850throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1855throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); 1860throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("elementName"); 1865throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 1925throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID3021))); 1964throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, (string)elementValue))); 1975throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.NamespaceURI, (string)elementValue))); 1992throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.NamespaceURI, (string)elementValue))); 2003throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.NamespaceURI, (string)elementValue))); 2014throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.NamespaceURI, (string)elementValue))); 2025throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.NamespaceURI, (string)elementValue))); 2036throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.NamespaceURI, (string)elementValue))); 2047throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.NamespaceURI, (string)elementValue))); 2073throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3013, elementName, elementValue.GetType()))); 2080throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2085throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2092throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3006))); 2097throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.ComputedKeyAlgorithm, trustConstants.NamespaceURI, computedKeyAlgorithm))); 2112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2117throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("computedKeyAlgorithm"); 2122throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2127throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, elementName, trustConstants.NamespaceURI, computedKeyAlgorithm))); 2142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, elementName, trustConstants.NamespaceURI, computedKeyAlgorithmAsStr))); 2152throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2190throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2195throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3215, encodingType, reader.LocalName, reader.NamespaceURI, string.Format(CultureInfo.InvariantCulture, "({0}, {1})", WSSecurity10Constants.EncodingTypes.Base64, WSSecurity10Constants.EncodingTypes.HexBinary)))); 2260throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2265throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("binaryExchange"); 2270throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2291throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString( 2309throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2314throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("status"); 2319throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2324throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("status code"); 2346throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2351throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3027, "the SecurityHeaderTokenResolver or OutOfBandTokenResolver"))); 2404throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2409throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("protectedKey"); 2414throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2434throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2439throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2446throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.NamespaceURI, requestType))); 2467throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3011, requestType))); 2475throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2480throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("requestType"); 2485throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2507throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3011, requestType))); 2517throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2522throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3161))); 2564throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2569throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("lifetime"); 2574throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2596throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2601throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException( 2620throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3216))); 2630throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2635throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuer"); 2640throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2652throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2657throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2670throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3162))); 2680throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2685throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("appliesTo"); 2690throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2702throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2707throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2713throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.KeyType, trustConstants.NamespaceURI, incomingKeyType))); 2730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3020, incomingKeyType))); 2738throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2743throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("keyType"); 2748throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2753throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.KeyType, trustConstants.NamespaceURI, keyType))); 2772throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3010, keyType))); 2787throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2795throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3061, elementName, elementNs))); 2819throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3061, elementName, elementNs))); 2841throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2846throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants"); 2853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3164))); 2863throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2868throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 2873throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("trustConstants");
System\IdentityModel\Psha1DerivedKeyGenerator.cs (7)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("label"); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("nonce"); 57this.seed = DiagnosticUtility.Utility.AllocateByteArray(checked(label.Length + seed.Length)); 67this.buffer = DiagnosticUtility.Utility.AllocateByteArray(checked(this.hmac.HashSize / 8 + this.seed.Length)); 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("derivedKeySize", SR.GetString(SR.ValueMustBeNonNegative))); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("position", SR.GetString(SR.ValueMustBeInRange, 0, this.position)));
System\IdentityModel\RijndaelCryptoServiceProvider.cs (25)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rgbKey"); 23throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rgbIV"); 25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESCipherModeNotSupported, this.ModeValue))); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rgbKey"); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rgbIV"); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESCipherModeNotSupported, this.ModeValue))); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESKeyLengthNotSupported, rgbKey.Length * 8))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESIVLengthNotSupported, rgbIV.Length * 8))); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESPaddingModeNotSupported, paddingMode))); 74DiagnosticUtility.DebugAssert((blockSizeBits % 8) == 0, "Bits must be byte aligned."); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inputBuffer"); 169throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("outputBuffer"); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeNonNegative))); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputCount", SR.GetString(SR.ValueMustBeGreaterThanZero))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("outputOffset", SR.GetString(SR.ValueMustBeNonNegative))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.AESInvalidInputBlockSize, inputCount, this.blockSize))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeInRange, 0, inputBuffer.Length - inputCount - 1))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("outputOffset", SR.GetString(SR.ValueMustBeInRange, 0, outputBuffer.Length - 1))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inputBuffer"); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeNonNegative))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputCount", SR.GetString(SR.ValueMustBeNonNegative))); 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeInRange, 0, inputBuffer.Length - inputCount - 1))); 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("outputBuffer", SR.GetString(SR.AESInsufficientOutputBuffer, outputBuffer.Length - outputOffset, inputCount))); 325DiagnosticUtility.DebugAssert(padSize <= this.blockSize, "Invalid padding size."); 379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(sr, reason)));
System\IdentityModel\RsaEncryptionCookieTransform.cs (16)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID6034, value)); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("encoded"); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("encoded", SR.GetString(SR.ID6045)); 157throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6039)); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1006, encryptedKeyAndIVSize))); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1007))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1008, encryptedDataSize))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1009))); 218throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6040)); 233throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6047, decryptedKeyAndIV.Length, decryptionKey.Length)); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID6044)); 277throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6043)); 303throw DiagnosticUtility.ThrowHelperInvalidOperation( SR.GetString( SR.ID6041 ) );
System\IdentityModel\RsaSignatureCookieTransform.cs (17)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID6034, value)); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("encoded"); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("encoded", SR.GetString(SR.ID6045)); 153throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6036)); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1012))); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1005, signatureLength))); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.ID1013))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID6035, HashName, verificationKeys[0].GetType().FullName), e)); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID1014))); 236throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID6044)); 247throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6042)); 253throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6042)); 258throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6046)); 282throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID6035, HashName, signingKey.GetType().FullName), e));
System\IdentityModel\SafeCryptHandles.cs (3)
23DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeProvHandle constructor can only be called with IntPtr.Zero."); 50DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeKeyHandle constructor can only be called with IntPtr.Zero."); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AESCryptImportKeyFailed, reason)));
System\IdentityModel\SamlDelegatingWriter.cs (4)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerWriter"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("canonicalStream"); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("callback"); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary");
System\IdentityModel\SecurityTokenService.cs (64)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("FederatedAsyncState"); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenServiceConfiguration"); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null ? request.RequestType : "Cancel")))); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID2081))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null && request.RequestType != null ? request.RequestType : "Renew")))); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null && request.RequestType != null ? request.RequestType : "Validate")))); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null && request.RequestType != null ? request.RequestType : "Cancel")))); 254throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 259throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("scope"); 313throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2083)); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 334throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("scope"); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 361throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3091))); 373throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new RequestFailedException(SR.GetString(SR.ID2011, request.ComputedKeyAlgorithm))); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new RequestFailedException(SR.GetString(SR.ID4007))); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new RequestFailedException(SR.GetString(SR.ID2059))); 428throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 442throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new RequestFailedException(SR.GetString(SR.ID2084, request.ProofEncryption.GetSecurityToken()))); 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2075, created, expires, utcNow))); 507throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2076, created, expires, utcNow))); 513throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2077, created, expires))); 519throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2078, created, expires, _securityTokenServiceConfiguration.MaximumTokenLifetime))); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, "Cancel"))); 589throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID2081))); 601throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2012, typeof(TypedAsyncResult<RSTR>), result.GetType()))); 619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, "Renew"))); 629throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, "Validate"))); 663throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID2081))); 675throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID2081))); 688throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("request"); 701throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2013)); 710throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2003)); 715throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2079)); 723throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4184)); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4010, request.TokenType))); 758throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4264, request.TokenType))); 795throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 801throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2001))); 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType()))); 821throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2013)); 831throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2003)); 836throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2079)); 844throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4184)); 853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4010, request == null ? String.Empty : request.TokenType))); 904throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 910throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2001))); 916throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2016))); 926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType()))); 936throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2003)); 954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4264, request.TokenType))); 1025throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 1039throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null && request.RequestType != null ? request.RequestType : "Renew")))); 1050throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID3141, (request != null && request.RequestType != null ? request.RequestType : "Validate")))); 1061throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2051))); 1067throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2052))); 1073throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2053))); 1079throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2050))); 1085throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new UnsupportedTokenTypeBadRequestException(request.TokenType)); 1099throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2056, request.KeySizeInBits.Value, _securityTokenServiceConfiguration.DefaultMaxSymmetricKeySizeInBits)));
System\IdentityModel\SecurityUtils.cs (27)
86DiagnosticUtility.DebugAssert(offset >= 0, "Negative offset passed to CloneBuffer."); 87DiagnosticUtility.DebugAssert(len >= 0, "Negative len passed to CloneBuffer."); 88DiagnosticUtility.DebugAssert(buffer.Length - offset >= len, "Invalid parameters to CloneBuffer."); 90byte[] copy = DiagnosticUtility.Utility.AllocateByteArray(len); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.CannotFindMatchingCrypto, encryptionMethod)); 130DiagnosticUtility.DebugAssert(dstOffset >= 0, "Negative dstOffset passed to MatchesBuffer."); 131DiagnosticUtility.DebugAssert(srcOffset >= 0, "Negative srcOffset passed to MatchesBuffer."); 399if (DiagnosticUtility.ShouldTraceVerbose) 412if (DiagnosticUtility.ShouldTraceInformation) 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 485throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new LimitExceededException(SR.GetString(SR.BufferQuotaExceededReadingBase64, maxBufferSize))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityMessageSerializationException(SR.GetString(SR.CannotFindMatchingCrypto, encryptionMethod))); 547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.InvalidHexString))); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.InvalidHexString))); 559sArray = DiagnosticUtility.Utility.AllocateByteArray(length / 3 + 1); 564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.InvalidHexString))); 569sArray = DiagnosticUtility.Utility.AllocateByteArray(length / 2); 594throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.InvalidHexString))); 925throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationNoServiceBinding))); 931throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationNoServiceBinding))); 941throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationNoServiceBinding))); 956throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, string.Empty))); 964throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, string.Empty))); 970throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, string.Empty))); 972throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, serviceBinding))); 984throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, string.Empty))); 986throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.InvalidServiceBindingInSspiNegotiationServiceBindingNotMatched, serviceBinding)));
System\IdentityModel\Selectors\AudienceUriMode.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Selectors\CustomUserNameSecurityTokenAuthenticator.cs (2)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("validator"); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("userName");
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (2)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("servicePrincipalName"); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel",
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (14)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("supportingAuthenticators"); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlTokenAuthenticatorCanOnlyProcessSamlTokens, token.GetType().ToString()))); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlTokenMissingSignature))); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLTokenTimeInvalid, DateTime.UtcNow.ToUniversalTime(), samlToken.ValidFrom.ToString(), samlToken.ValidTo.ToString()))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlSigningTokenMissing))); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlInvalidSigningToken))); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceUrisNotFound))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceUriValidationFailed))); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceUriValidationFailed))); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier");
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (4)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.CannotValidateSecurityTokenType, this, token.GetType()))); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(errorMsg));
System\IdentityModel\Selectors\SecurityTokenProvider.cs (16)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.TokenProviderUnableToGetToken, this))); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.TokenProviderUnableToGetToken, this))); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenToBeRenewed"); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.TokenProviderUnableToRenewToken, this))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenToBeRenewed"); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.TokenProviderUnableToRenewToken, this))); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.TokenRenewalNotSupported, this))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.TokenCancellationNotSupported, this))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(SR.GetString(SR.AsyncCallbackException), e); 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result"); 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.InvalidAsyncResult), "result"));
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (3)
124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.ValueMustBeNonNegative))); 152throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SecurityTokenRequirementDoesNotContainProperty, propertyName))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SecurityTokenRequirementHasInvalidTypeForProperty, propertyName, dictionaryValue.GetType(), typeof(TValue))));
System\IdentityModel\Selectors\SecurityTokenResolver.cs (15)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnableToResolveTokenReference, keyIdentifier))); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnableToResolveTokenReference, keyIdentifierClause))); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.UnableToResolveKeyReference, keyIdentifierClause))); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName))); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokens"); 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause");
System\IdentityModel\Selectors\SecurityTokenSerializer.cs (15)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause");
System\IdentityModel\Selectors\UserNamePasswordValidator.cs (2)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("provider"); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(
System\IdentityModel\Selectors\UserNameSecurityTokenProvider.cs (1)
17throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("userName");
System\IdentityModel\Selectors\WindowsUserNameSecurityTokenAuthenticator.cs (2)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.IncorrectUserNameFormat)); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.FailLogonUser, userName), new Win32Exception(error)));
System\IdentityModel\Selectors\X509CertificateChain.cs (10)
64get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); } 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("certificate", SR.GetString(SR.ArgumentInvalidCertificate)); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.X509ChainBuildFail, 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 253throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 350throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CollectionWasModified)));
System\IdentityModel\Selectors\X509CertificateStore.cs (13)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("storeName", (int)storeName, 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("storeLocation", SR.GetString(SR.X509CertStoreLocationNotValid))); 86DiagnosticUtility.DebugAssert(this.certStoreHandle.IsInvalid, ""); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(error)); 109DiagnosticUtility.DebugAssert(!this.certStoreHandle.IsInvalid, ""); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType()))); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType()))); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType()))); 320DiagnosticUtility.DebugAssert(findType + " is not supported!");
System\IdentityModel\Selectors\X509CertificateValidator.cs (11)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("chainPolicy"); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("chainPolicy"); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName))); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception); 161DiagnosticUtility.DebugAssert(now.Kind == certificate.NotAfter.Kind && now.Kind == certificate.NotBefore.Kind, ""); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.X509ChainBuildFail, 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(exception.Message + " " + ex.Message));
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (9)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("validator"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.InvalidNtMapping, 163DiagnosticUtility.TraceHandledException(ex, TraceEventType.Information); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 195DiagnosticUtility.FailFast(message); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(dwErrorCode)); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(status))); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(NativeMethods.LsaNtStatusToWinError(subStatus)));
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (4)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("findValue"); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.CannotFindCert, storeName, storeLocation, findType, findValue))); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.FoundMultipleCerts, storeName, storeLocation, findType, findValue)));
System\IdentityModel\SignatureResourcePool.cs (1)
64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( algorithm, SR.GetString( SR.EmptyOrNullArgumentString, "algorithm" ) );
System\IdentityModel\SignedXml.cs (40)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signedInfo")); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryManager"); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenSerializer"); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.SignatureVerificationFailed))); 207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.SignatureVerificationFailed))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnknownICryptoType, verificationKey))); 238throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 430throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryManager"); 472throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedTransformAlgorithm))); 483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedTransformAlgorithm))); 536throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedTransformAlgorithm))); 559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.InclusiveNamespacePrefixRequiresSignatureReader))); 563DiagnosticUtility.DebugAssert(signatureReader != null, "Require a Signature reader to validate signature."); 616throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 634throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException()); 705throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 739throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AtLeastOneReferenceRequired))); 807throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); 810throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("prefix"); 1014throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryManager"); 1082throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 1091throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 1104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1152throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1212throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.EmptyTransformChainNotSupported))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 1370throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException()); 1393throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AtLeastOneTransformRequired))); 1399DiagnosticUtility.DebugAssert(TransformCount > 0, ""); 1429throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("elementName")); 1457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(
System\IdentityModel\SspiHelper.cs (1)
362this.token = size == 0 ? null : DiagnosticUtility.Utility.AllocateByteArray(size);
System\IdentityModel\SspiSafeHandles.cs (9)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inCredentials"); 299outSecBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("inCredentials"); 573outSecBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size); 827throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SspiPayloadNotEncrypted))); 1368DiagnosticUtility.DebugAssert(handle == IntPtr.Zero || !ownsHandle, "Unsafe to create a SafeHandle that owns a pre-existing handle before the SafeHandle was created."); 1397DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeHGlobalHandle constructor can only be called with IntPtr.Zero."); 1414byte[] bytes = DiagnosticUtility.Utility.AllocateByteArray(checked((s.Length + 1) * 2)); 1437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("cb", SR.GetString(SR.ValueMustBeNonNegative)));
System\IdentityModel\SspiWrapper.cs (15)
318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 353throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SSPIPackageNotSupported, packageName))); 387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 443throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 520throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("handleType", SR.GetString(SR.ValueMustBeOf2Types, typeof(SafeFreeContextBuffer).ToString(), typeof(SafeFreeCertContext).ToString()))); 573throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("contextAttribute", (int)contextAttribute, 585throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 694throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(errorCode)); 747iBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(iBuffer.size); 779DiagnosticUtility.DebugAssert(SR.GetString(SR.SspiWrapperEncryptDecryptAssert1, iBuffer.offset)); 780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SspiWrapperEncryptDecryptAssert1, iBuffer.offset))); 785DiagnosticUtility.DebugAssert(SR.GetString(SR.SspiWrapperEncryptDecryptAssert2, iBuffer.size)); 786throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SspiWrapperEncryptDecryptAssert2, iBuffer.size)));
System\IdentityModel\StandardTransformFactory.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedTransformAlgorithm)));
System\IdentityModel\StrTransform.cs (5)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 156throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AlgorithmMismatchForTransform))); 254throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException( 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.AlgorithmMismatchForTransform)));
System\IdentityModel\Tokens\AbsoluteUriCollection.cs (2)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SR.GetString(SR.ID0013)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SR.GetString(SR.ID0013));
System\IdentityModel\Tokens\AggregateTokenResolver.cs (4)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "tokenResolvers" ); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifierClause" ); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifer" ); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifierClause" );
System\IdentityModel\Tokens\AsymmetricProofDescriptor.cs (3)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "rsaAlgorithm" ); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifier" ); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "response" );
System\IdentityModel\Tokens\AuthorizationPolicy.cs (7)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identity"); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identityCollection"); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("evaluationContext"); 125if (DiagnosticUtility.ShouldTrace(TraceEventType.Information)) 149if (DiagnosticUtility.ShouldTrace(TraceEventType.Error)) 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identity"); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identities");
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (3)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("identificationData")); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("identificationData", SR.GetString(SR.LengthMustBeGreaterThanZero))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeNonNegative)));
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (10)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customConfiguration"); 62throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7019, typeof(ConfigurationBasedIssuerNameRegistry).Name)); 69throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7002, customConfigElement.LocalName, ConfigurationStrings.TrustedIssuers)); 84throw DiagnosticUtility.ThrowHelperInvalidOperation( 101throw DiagnosticUtility.ThrowHelperInvalidOperation( 118throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7002, customConfigElement.LocalName, childElement.LocalName)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityToken"); 185throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("certificateThumbprint"); 190throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("name"); 195throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4265, certificateThumbprint));
System\IdentityModel\Tokens\DefaultTokenReplayCache.cs (4)
49throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID0002)); 75throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("size", size, SR.GetString(SR.ID0002)); 92throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID0016)); 111throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID1072));
System\IdentityModel\Tokens\DEREncoding.cs (13)
164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 269throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 283throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException()); 289throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SystemException());
System\IdentityModel\Tokens\EncryptedKeyEncryptingCredentials.cs (1)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "wrappingCredentials" );
System\IdentityModel\Tokens\EncryptedKeyIdentifierClause.cs (1)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("encryptionMethod");
System\IdentityModel\Tokens\EncryptedSecurityToken.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("encryptingCredentials");
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (17)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 126throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 131throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4276)); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 218throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4014, innerTokenReader.LocalName, innerTokenReader.NamespaceURI)); 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID3275, reader.Name, reader.NamespaceURI))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 293throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID4024)); 304throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4279)); 325throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4224, encryptedToken.Token.GetType())); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID3064)));
System\IdentityModel\Tokens\EncryptingCredentials.cs (6)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 52throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("algorithm"); 78throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("value"); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Tokens\EndpointAuthorizationPolicy.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "endpointId" );
System\IdentityModel\Tokens\GenericXmlSecurityKeyIdentifierClause.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("referenceXml");
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (2)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenXml"); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.UnableToCreateTokenReference)));
System\IdentityModel\Tokens\IssuerNameRegistry.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\IssuerTokenResolver.cs (4)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "wrappedTokenResolver" ); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifierClause" ); 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifier" ); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "keyIdentifierClause" );
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (8)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("request")); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SecurityChannelBindingMissing))); 228if (DiagnosticUtility.ShouldTraceInformation) 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 242throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 247throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(statusCode));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (9)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("servicePrincipalName"); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel", 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.ProvidedNetworkCredentialsForKerberosHasInvalidUserName)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.UnableToCreateKerberosCredentials), e)); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.UnableToCreateKerberosCredentials), ste)); 177if (DiagnosticUtility.ShouldTraceInformation) 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (4)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(KerberosReceiverSecurityToken))); 84throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 91throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4026));
System\IdentityModel\Tokens\KeyInfoSerializer.cs (9)
135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new XmlException( SR.GetString( SR.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute( XD.SecurityJan2004Dictionary.ValueType, null ) ) ) ); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, token.GetType()))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ErrorDeserializingKeyIdentifierClause))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ErrorSerializingKeyIdentifier), e)); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifier.GetType()))); 268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ErrorDeserializingKeyIdentifierClause), e)); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI))); 310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ErrorSerializingKeyIdentifierClause), e)); 318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (2)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("localId"); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.LocalIdCannotBeEmpty));
System\IdentityModel\Tokens\MruSessionSecurityTokenCache.cs (5)
93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID0008), "sizeAfterPurge")); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID0009), "sizeAfterPurge")); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4294))); 324if (DiagnosticUtility.ShouldTrace(TraceEventType.Information))
System\IdentityModel\Tokens\RsaKeyIdentifierClause.cs (3)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rsa"); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer");
System\IdentityModel\Tokens\RsaSecurityKey.cs (17)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rsa"); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.NoPrivateKeyAvailable))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedCryptoAlgorithm, 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndKeyMisMatch, algorithm), e)); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndKeyMisMatch, algorithm), e)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 236throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm"));
System\IdentityModel\Tokens\RsaSecurityToken.cs (6)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rsa"); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("rsa"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 110DiagnosticUtility.TraceHandledException(ex, TraceEventType.Warning); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (10)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(RsaSecurityToken))); 162throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(RsaSecurityToken)));
System\IdentityModel\Tokens\Saml2Action.cs (6)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionNamespace"); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("actionNamespace", SR.GetString(SR.ID0013)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Tokens\Saml2Assertion.cs (5)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuer"); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 208throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
System\IdentityModel\Tokens\Saml2AssertionKeyIdentifierClause.cs (2)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertionId");
System\IdentityModel\Tokens\Saml2Attribute.cs (9)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("values"); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("error", SR.GetString(SR.ID0013)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4251)); 156throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254));
System\IdentityModel\Tokens\Saml2AttributeStatement.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("attributes"); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("attributes");
System\IdentityModel\Tokens\Saml2AudienceRestriction.cs (2)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("audiences"); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("audiences");
System\IdentityModel\Tokens\Saml2AuthenticationContext.cs (4)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("classReference", SR.GetString(SR.ID0013)); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("declarationReference", SR.GetString(SR.ID0013)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013)); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013));
System\IdentityModel\Tokens\Saml2AuthenticationStatement.cs (2)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authenticationContext"); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Tokens\Saml2AuthorizationDecisionStatement.cs (6)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("resource", SR.GetString(SR.ID4121)); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("decision")); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4121));
System\IdentityModel\Tokens\Saml2Conditions.cs (2)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4116)); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4116));
System\IdentityModel\Tokens\Saml2Evidence.cs (3)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("idReference"); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("uriReference");
System\IdentityModel\Tokens\Saml2Id.cs (2)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\IdentityModel\Tokens\Saml2NameIdentifier.cs (4)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("format", SR.GetString(SR.ID0013)); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013)); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
System\IdentityModel\Tokens\Saml2ProxyRestriction.cs (1)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.ID0002)));
System\IdentityModel\Tokens\Saml2SecurityToken.cs (2)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keys");
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (237)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSecurityTokenRequirement"); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customConfigElements"); 101throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7026, ConfigurationStrings.SamlSecurityTokenRequirement)); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID4151)); 326throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 335throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4152))); 340throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1034)); 418throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("upn"); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 442throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 453throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID4160)); 506throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 511throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4161)); 517throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, WSSE.Elements.SecurityTokenReference, WSSE.Namespace)); 573throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4126)); 586throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, WSSE.Attributes.ValueType, WSSE.Elements.KeyIdentifier)); 591throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4127, value)); 610throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4125), inner); 629throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 634throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4275)); 639throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4276)); 663throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 668throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 685throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("keyIdentifierClause", SR.GetString(SR.ID4162)); 702throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 735throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 742throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, reader.LocalName, reader.NamespaceURI)); 774throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4172)); 810throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 818throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 841return DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4125), inner); 893throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, reader.LocalName, reader.NamespaceURI)); 942throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, reader.LocalName, reader.NamespaceURI)); 952throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0022)); 957throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(kind == UriKind.RelativeOrAbsolute ? SR.ID0019 : SR.ID0013)); 1061throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1069throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4138))); 1086throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 1102throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("nameFormat", SR.GetString(SR.ID0013)); 1209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1214throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1293throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1330throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1364throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4270, "AuthenticationMethod", "SAML2")); 1368throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4270, "AuthenticationInstant", "SAML2")); 1374throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4185, authenticationMethod)); 1411throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1432throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4139))); 1503throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1513throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4178))); 1538throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 1564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenNotYetValidException(SR.GetString(SR.ID4147, conditions.NotBefore.Value, now))); 1570throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenExpiredException(SR.GetString(SR.ID4148, conditions.NotOnOrAfter.Value, now))); 1575throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4149))); 1580throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4150))); 1588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID1032))); 1593throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException(SR.GetString(SR.ID1035))); 1641throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 1647throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1064, token.GetType().ToString())); 1658throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 1663throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4278)); 1668throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID1065))); 1692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenReplayDetectedException(SR.GetString(SR.ID1066, typeof(Saml2SecurityToken).ToString(), samlToken.Assertion.Id.Value, issuer))); 1714throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 1745throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1772throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertionSubject"); 1777throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1820throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 1825throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1834throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4218)); 1911throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4218)); 1967throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1972throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4180)); 2052throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlToken"); 2061throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("samlToken", SR.GetString(SR.ID1034)); 2066throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 2071throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4277)); 2078throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4175))); 2095throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("confirmationData"); 2100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4153))); 2105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4154))); 2110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4157))); 2118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4176, confirmationData.NotBefore.Value, now))); 2124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4177, confirmationData.NotOnOrAfter.Value, now))); 2138throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 2146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4130))); 2153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4131))); 2159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4132))); 2175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4133))); 2186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4134))); 2227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4136, subjectConfirmation.Method))); 2245throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 2256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(exceptionMessage)); 2271throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 2323throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4104, reader.LocalName, reader.NamespaceURI)); 2334throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4110, parentElement, declaredType.Name, declaredType.Namespace)); 2350throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2362throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.Action, Saml2Constants.Namespace)); 2380throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Namespace, Saml2Constants.Elements.Action)); 2385throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Namespace, Saml2Constants.Elements.Action)); 2419throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2424throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 2429throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data.Namespace"); 2434throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("data.Namespace"); 2468throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2548throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2553throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 2590throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2595throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 2600throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4275)); 2605throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4276)); 2637throw DiagnosticUtility.ThrowHelperXml(plaintextReader, SR.GetString(SR.ID3061, plaintextReader.LocalName, plaintextReader.NamespaceURI)); 2660throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Version, Saml2Constants.Elements.Assertion)); 2665throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID4100, version)); 2672throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.ID, Saml2Constants.Elements.Assertion)); 2681throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.IssueInstant, Saml2Constants.Elements.Assertion)); 2749throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4106)); 2760throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4119)); 2806throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2811throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 2828throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4173))); 2853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4106))); 2864throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 2933throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID3064))); 2967throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2991throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Name, Saml2Constants.Elements.Attribute)); 3002throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Namespace, Saml2Constants.Elements.Action)); 3024throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4252))); 3148throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3190throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3195throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3289throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3316throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace)); 3328throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4158)); 3376throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3381throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4124))); 3413throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3440throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, reader.LocalName, reader.NamespaceURI)); 3491throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3496throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3502throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4159))); 3533throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3547throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthnContext, Saml2Constants.Namespace)); 3573throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4118)); 3626throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3631throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3637throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 3676throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3712throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace)); 3719throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.AuthnInstant, Saml2Constants.Elements.AuthnStatement)); 3782throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3787throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3832throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3865throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace)); 3872throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Decision, Saml2Constants.Elements.AuthzDecisionStatement)); 3888throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4123, value)); 3895throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Resource, Saml2Constants.Elements.AuthzDecisionStatement)); 3905throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4121)); 3958throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3963throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 3969throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 4012throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4064throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4104, reader.LocalName, reader.NamespaceURI)); 4074throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.Elements.OneTimeUse)); 4084throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.Elements.ProxyRestricton)); 4092throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4113)); 4103throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.Elements.OneTimeUse)); 4113throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.Elements.ProxyRestricton)); 4155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4160throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4210throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4222throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.Evidence, Saml2Constants.Namespace)); 4261throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4120)); 4294throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4299throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 4344throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4365throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4370throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4388throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4405throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4440throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4445throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4461throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4466throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4475throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4221, data)); 4488throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4511throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4516throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.ID3284))); 4607throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Format, Saml2Constants.Elements.NameID)); 4644throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4262, nameIdentifier.Value, Saml2Constants.NameIdentifierFormats.Entity.AbsoluteUri)); 4651throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4263, nameIdentifier.Value, Saml2Constants.NameIdentifierFormats.Entity.AbsoluteUri)); 4685throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4773throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4847throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4852throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4887throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 4904throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4104, reader.LocalName, reader.NamespaceURI)); 4923throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4105, declaredType.Name, declaredType.Namespace)); 4941throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 4946throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 4970throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 4988throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 5003throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, reader.LocalName, reader.NamespaceURI)); 5029throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4108)); 5060throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 5065throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 5072throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4108))); 5105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 5127throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Method, Saml2Constants.Elements.SubjectConfirmation)); 5132throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Method, Saml2Constants.Elements.SubjectConfirmation)); 5182throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 5187throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 5192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data.Method"); 5197throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("data.Method"); 5235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 5263throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4112, type.Name, type.Namespace)); 5270throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.GetString(SR.ID4111))); 5307throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Recipient, Saml2Constants.Elements.SubjectConfirmationData)); 5333throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4114, Saml2Constants.Elements.SubjectConfirmationData)); 5371throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 5376throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 5441throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 5501throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 5506throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("data"); 5574throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 5584throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 5595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 5615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\IdentityModel\Tokens\Saml2Subject.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subjectConfirmation");
System\IdentityModel\Tokens\Saml2SubjectConfirmation.cs (4)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("method"); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("method", SR.GetString(SR.ID0013)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013));
System\IdentityModel\Tokens\Saml2SubjectConfirmationData.cs (1)
100throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0013));
System\IdentityModel\Tokens\SamlAction.cs (10)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("action", SR.GetString(SR.SAMLActionNameRequired)); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.SAMLActionNameRequired)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLActionNameRequired))); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLActionNameRequiredOnRead))); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlAdvice.cs (7)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.AssertionIdReference.Value)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Assertion.Value)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.Advice.Value))); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlAssertion.cs (49)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionIdRequired)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionIDIsInvalid, assertionId)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionIssuerRequired)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlStatements"); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Statement.Value)); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionRequireOneStatement)); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionIdRequired)); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAssertionIssuerRequired)); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 295throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSerializer"); 301throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SAMLSignatureAlreadyRead))); 327throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToResolveSignatureKey, this.issuer))); 335throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlSigningTokenNotFound))); 344throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ski"); 372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.KeyIdentifierCannotCreateKey))); 381throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionIdRequired))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionIDIsInvalid, this.assertionId))); 387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionIssuerRequired))); 390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionRequireOneStatement))); 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("signature"); 460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("signatureVerificatonKey"); 487throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("ReadXml")); 490throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 498throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLElementNotRecognized, wrappedReader.LocalName))); 502throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionMissingMajorVersionAttributeOnRead))); 507throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionMissingMinorVersionAttributeOnRead))); 513throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLTokenVersionNotSupported, majorVersion, minorVersion, SamlConstants.MajorVersionValue, SamlConstants.MinorVersionValue))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionIdRequired))); 521throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionIDIsInvalid, attributeValue))); 527throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionMissingIssuerAttributeOnRead))); 542throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadCondtions))); 549throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadAdvice))); 563throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadStatement))); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAssertionRequireOneStatementOnRead))); 590throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 593throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SamlAssertionMissingSigningCredentials))); 620throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 672throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SAMLTokenNotSerialized), e)); 685throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 699throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("knownClaimTypes");
System\IdentityModel\Tokens\SamlAssertionKeyIdentifierClause.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertionId");
System\IdentityModel\Tokens\SamlAttribute.cs (29)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeNameAttributeRequired)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeNamespaceAttributeRequired)); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("attributeValues"); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeValueCannotBeNull)); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeShouldHaveOneValue)); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SamlAttributeClaimResourceShouldBeAString)); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SamlAttributeClaimRightShouldBePossessProperty)); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeNameAttributeRequired)); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeNamespaceAttributeRequired)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4251)); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID4254)); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeValueCannotBeNull)); 207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeNameAttributeRequired))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeNamespaceAttributeRequired))); 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeShouldHaveOneValue))); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeMissingNameAttributeOnRead))); 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeMissingNamespaceAttributeOnRead))); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeShouldHaveOneValue))); 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAttributeValueCannotBeNull));
System\IdentityModel\Tokens\SamlAttributeKeyComparer.cs (2)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "attribute" ); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "attribute" );
System\IdentityModel\Tokens\SamlAttributeStatement.cs (12)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("attributes")); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Attribute.Value)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectStatementRequiresSubject))); 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeShouldHaveOneValue))); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeStatementMissingSubjectOnRead))); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadAttribute))); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAttributeStatementMissingAttributeOnRead))); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claims");
System\IdentityModel\Tokens\SamlAudienceRestrictionCondition.cs (10)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("audiences")); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Audience.Value)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceRestrictionShouldHaveOneAudience))); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceRestrictionInvalidAudienceValueOnRead))); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.AudienceRestrictionCondition.Value))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAudienceRestrictionShouldHaveOneAudienceOnRead))); 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlAuthenticationClaimResource.cs (5)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authenticationMethod"); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authorityBindings"); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("authenticationMethod"); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("authorityBindings")); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("authorityBindings"));
System\IdentityModel\Tokens\SamlAuthenticationStatement.cs (17)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authenticationMethod", SR.GetString(SR.SAMLAuthenticationStatementMissingAuthenticationMethod)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Assertion.Value)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claims"); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectStatementRequiresSubject))); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthenticationStatementMissingAuthenticationMethod))); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthenticationStatementMissingAuthenticationInstanceOnRead))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthenticationStatementMissingAuthenticationMethodOnRead))); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthenticationStatementMissingSubject))); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.AuthenticationStatement))); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 246throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlAuthorityBinding.cs (19)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAuthorityKindMissingName)); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAuthorityBindingRequiresBinding)); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAuthorityBindingRequiresLocation)); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingMissingAuthorityKind))); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityKindMissingName))); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingRequiresBinding))); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingRequiresLocation))); 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingMissingAuthorityKindOnRead))); 127throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingInvalidAuthorityKind))); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingMissingBindingOnRead))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorityBindingMissingLocationOnRead))); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlAuthorizationDecisionClaimResource.cs (4)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName"); 40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName");
System\IdentityModel\Tokens\SamlAuthorizationDecisionStatement.cs (20)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlActions")); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Action.Value)); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLAuthorizationDecisionResourceRequired)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("claims")); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectStatementRequiresSubject))); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionResourceRequired))); 152throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionShouldHaveOneAction))); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionStatementMissingResourceAttributeOnRead))); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionStatementMissingDecisionAttributeOnRead))); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionStatementMissingSubjectOnRead))); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionHasMoreThanOneEvidence))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.AuthorizationDecisionStatement))); 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLAuthorizationDecisionShouldHaveOneActionOnRead))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlConditions.cs (8)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Condition.Value)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadCondtion))); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlDoNotCacheCondition.cs (5)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.DoNotCacheCondition.Value))); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlEvidence.cs (10)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEvidenceShouldHaveOneAssertion)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.AssertionIdReference.Value)); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.Assertion.Value)); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLEvidenceShouldHaveOneAssertion))); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer")); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.Evidence.Value))); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLEvidenceShouldHaveOneAssertionOnRead))); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlNameIdentifierClaimResource.cs (2)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name");
System\IdentityModel\Tokens\SamlSecurityToken.cs (2)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnableToCreateTokenReference)));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (188)
75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSecurityTokenRequirement"); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customConfigElements"); 106throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7026, ConfigurationStrings.SamlSecurityTokenRequirement)); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4013))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 251throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSubject"); 347throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 383throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4270, "AuthenticationMethod", "SAML11")); 387throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4270, "AuthenticationInstant", "SAML11")); 428throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSubject"); 515throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 519throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 560throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 575throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 667throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim"); 676throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SR.GetString(SR.ID4216, claim.Type)); 680throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SR.GetString(SR.ID4216, claim.Type)); 707throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claim", SR.GetString(SR.ID4213, claim.Type)); 777throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 783throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1067, token.GetType().ToString())); 797throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 802throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4278)); 807throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID1063))); 832throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 837throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 858throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 869throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 896throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 903throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 915throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID1032))); 941throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException(SR.GetString(SR.ID1035))); 961throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 967throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1033, token.GetType().ToString())); 972throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 979throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1034)); 987throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4220))); 1011throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4257, 1065throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("upn"); 1105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSecurityToken"); 1110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("samlSecurityToken", SR.GetString(SR.ID1034)); 1125throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 1130throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4277)); 1140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4175))); 1177throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statements"); 1238throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlStatement"); 1243throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4094))); 1282throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4034)); 1351throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSubject"); 1393throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlStatement"); 1398throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 1462throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4034)); 1536throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 1541throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4275)); 1568throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1580throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4073))); 1590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4065, SamlConstants.ElementNames.Action, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 1604throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1609throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("action"); 1632throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1637throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4065, SamlConstants.ElementNames.Advice, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 1692throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1697throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("advice"); 1707throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4079))); 1736throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1741throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 1746throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4275)); 1756throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4065, SamlConstants.ElementNames.Assertion, SamlConstants.Namespace, wrappedReader.LocalName, wrappedReader.NamespaceURI))); 1762throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.MajorVersion))); 1770throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.MinorVersion))); 1777throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4076, majorVersion, minorVersion, SamlConstants.MajorVersionValue, SamlConstants.MinorVersionValue))); 1783throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.AssertionId))); 1788throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4077, attributeValue))); 1796throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.Issuer))); 1828throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4078))); 1855throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1860throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 1918throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 1969throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 1974throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("conditions"); 2020throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2033throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4080, reader.LocalName, reader.NamespaceURI))); 2049throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("condition"); 2066throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4081, condition.GetType()))); 2080throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2085throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.AudienceRestrictionCondition, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2098throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4083))); 2107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.Audience, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4084))); 2132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2137throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("condition"); 2143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 2169throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.DoNotCacheCondition, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2204throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("condition"); 2228throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2245throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4085, reader.LocalName, reader.NamespaceURI))); 2262throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2267throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 2291throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4086, statement.GetType()))); 2305throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.Subject, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2326throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4087))); 2339throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4088))); 2349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4088))); 2376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4089))); 2399throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2404throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subject"); 2459throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2467throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4090))); 2480throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2485throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subjectSki"); 2494throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("subjectSki", SR.GetString(SR.ID4091, subjectSki.GetType())); 2509throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2514throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.AttributeStatement, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2527throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4092))); 2547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4093))); 2566throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2571throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 2597throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2605throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4094))); 2611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4095))); 2629throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4252))); 2678throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4212))); 2724throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2767throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2772throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("attribute"); 2801throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4096))); 2829throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2847throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2852throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.AuthenticationStatement, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2859throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4097))); 2867throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4098))); 2880throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4099))); 2910throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.AuthorityBinding, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 2930throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 2935throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 2985throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 2992throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4200))); 2998throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4201, authKind))); 3022throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4202))); 3028throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4203))); 3055throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3060throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 3112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3117throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 3123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4217, token.GetType(), typeof(SamlSecurityToken)))); 3142throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.AuthorizationDecisionStatement, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 3154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4205))); 3160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4204))); 3185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4206))); 3198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4207))); 3205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4208, reader.LocalName, reader.NamespaceURI))); 3211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4209))); 3230throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statement"); 3271throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4082, SamlConstants.ElementNames.Evidence, SamlConstants.Namespace, reader.LocalName, reader.NamespaceURI))); 3294throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4210, reader.LocalName, reader.NamespaceURI))); 3300throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4211))); 3319throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3324throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("evidence"); 3352throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("subjectKeyIdentifier"); 3357throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 3362throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4276)); 3395throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 3400throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuerResolver"); 3410throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4220))); 3426throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertion"); 3460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 3495throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 3500throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("signingKeyIdentifier"); 3509throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4221, signingKeyIdentifier)); 3520throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("statements"); 3565throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4225, subject)); 3608throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 3636throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 3654throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent"); 3693throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 3703throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 3708throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 3718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (21)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 58throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7000, ConfigurationStrings.SamlSecurityTokenRequirement, element.LocalName)); 74throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7022, attribute.Value)); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, element.LocalName))); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, element.LocalName))); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, element.LocalName))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7004, attribute.LocalName, element.LocalName))); 179throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7001, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}/{1}", element.LocalName, childElement.LocalName), ConfigurationStrings.Value)); 187throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7001, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}/{1}", element.LocalName, childElement.LocalName), ConfigurationStrings.Value)); 193throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7002, childElement.LocalName, ConfigurationStrings.SamlSecurityTokenRequirement)); 201throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7028)); 208throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID7007, customValidatorType)); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 295throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4025, audienceUriMode))); 332throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("allowedAudienceUris"); 337throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenAudiences"); 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException( 348throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException( 386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException( 413throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new AudienceUriValidationFailedException(SR.GetString(SR.ID1037)));
System\IdentityModel\Tokens\SamlSerializer.cs (16)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadAssertion))); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.SAMLUnableToLoadUnknownElement, reader.LocalName))); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.SAMLUnableToLoadUnknownElement, reader.LocalName))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenSerializer", SR.GetString(SR.SamlSerializerRequiresExternalSerializers)); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SamlSerializerUnableToReadSecurityKeyIdentifier))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenSerializer", SR.GetString(SR.SamlSerializerRequiresExternalSerializers)); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SamlSerializerUnableToWriteSecurityKeyIdentifier, ski.ToString()))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ski");
System\IdentityModel\Tokens\SamlSubject.cs (24)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLEntityCannotBeNullOrEmpty, XD.SamlDictionary.SubjectConfirmationMethod.Value)); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLSubjectRequiresNameIdentifierOrConfirmationMethod)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLSubjectRequiresConfirmationMethodWhenConfirmationDataOrKeyInfoIsSpecified)); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SAMLSubjectNameIdentifierRequiresNameValue)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 156throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectRequiresNameIdentifierOrConfirmationMethod))); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectRequiresConfirmationMethodWhenConfirmationDataOrKeyInfoIsSpecified))); 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlAuthenticator"); 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("reader")); 264throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("samlSerializer"); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLNameIdentifierMissingIdentifierValueOnRead))); 295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLBadSchema, dictionary.SubjectConfirmationMethod.Value))); 306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectConfirmationClauseMissingConfirmationMethodOnRead))); 327throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlUnableToExtractSubjectKey))); 334throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLSubjectRequiresNameIdentifierOrConfirmationMethodOnRead))); 349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 352throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSerializer"));
System\IdentityModel\Tokens\SamlSubjectStatement.cs (5)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSubject")); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuer"); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("samlSubject"));
System\IdentityModel\Tokens\SctAuthorizationPolicy.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "evaluationContext" );
System\IdentityModel\Tokens\SecurityKeyElement.cs (4)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifierClause"); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifier"); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ski"); 224throw DiagnosticUtility.ExceptionUtility.ThrowHelper(
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (5)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("clauses"); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("clause")); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.KeyIdentifierCannotCreateKey))); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.NoKeyIdentifierClauseFound, typeof(TClause)), "TClause"));
System\IdentityModel\Tokens\SecurityKeyIdentifierClause.cs (1)
50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.KeyIdentifierClauseDoesNotSupportKeyCreation)));
System\IdentityModel\Tokens\SecurityKeyType.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\SecurityToken.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (2)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2002))); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("response");
System\IdentityModel\Tokens\SecurityTokenElement.cs (5)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityToken"); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenXml"); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenHandlers"); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4052))); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4051, securityTokenXml, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\SecurityTokenHandler.cs (10)
133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "ReadToken"))); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "ReadToken"))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "WriteToken"))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "WriteToken"))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "ReadKeyIdentifierClause"))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "WriteKeyIdentifierClause"))); 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "CreateToken"))); 246throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "CreateSecurityTokenReference"))); 269throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID4008, "SecurityTokenHandler", "ValidateToken"))); 287throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (26)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("configuration"); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("handlers"); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("handler"); 264throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNullOrEmptyString("tokenString"); 312throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 335throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4020, tokenDescriptor.TokenType))); 358throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 364throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4011, token.GetType()))); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 404throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNullOrEmptyString("tokenString"); 428throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 433throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 439throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, token.GetType()))); 455throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, token.GetType()))); 536throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 553throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 587throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 605throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 610throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 626throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 631throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 650throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("handler");
System\IdentityModel\Tokens\SecurityTokenHandlerCollectionManager.cs (3)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("serviceName"); 90throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("usage"); 101throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("usage");
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (8)
113throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 230throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID2070)); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); 302throw DiagnosticUtility.ThrowHelperArgumentOutOfRange("value", value, SR.GetString(SR.ID0016));
System\IdentityModel\Tokens\SecurityTokenSerializerAdapter.cs (3)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityTokenHandlerCollection"); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4192));
System\IdentityModel\Tokens\SessionSecurityToken.cs (56)
224throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimsPrincipal"); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contextId"); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("validFrom")); 267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("validTo")); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpointId"); 287throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keyEffectiveTime")); 292throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keyExpirationTime")); 317throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpointId"); 343throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4272)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.SecurityContextToken.Value, reader.Name))); 408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4232, version, SupportedVersion))); 427throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4232, version, SupportedVersion))); 438throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4239, dictionary.Id.Value))); 443throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.ContextId.Value, reader.Name))); 450throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.Key.Value, reader.Name))); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.EffectiveTime.Value, reader.Name))); 469throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.ExpiryTime.Value, reader.Name))); 475throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.KeyEffectiveTime.Value, reader.Name))); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4230, dictionary.KeyExpiryTime.Value, reader.Name))); 795throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryReader"); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 863throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryReader"); 868throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 873throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identities"); 903throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryReader"); 908throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 917throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID3007, dictionaryReader.LocalName, dictionaryReader.NamespaceURI))); 1002throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windowsLogonName"); 1013throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4248, windowsLogonName))); 1043throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4248, windowsLogonName), new Win32Exception(errorCode))); 1048throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4248, windowsLogonName), new Win32Exception(errorCode))); 1094throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryReader"); 1099throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claims"); 1145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryReader"); 1150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties"); 1170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4249))); 1175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4250))); 1198throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryWriter"); 1203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1208throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("principal"); 1233throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryWriter"); 1238throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1243throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identities"); 1268throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryWriter"); 1273throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1278throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("identity"); 1396throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryWriter"); 1401throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1406throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claims"); 1466throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionaryWriter"); 1471throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary"); 1476throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties"); 1625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4290, claim))); 1749throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4289, reader.LocalName, reader.NamespaceURI)));
System\IdentityModel\Tokens\SessionSecurityTokenCache.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\SessionSecurityTokenCacheKey.cs (2)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpointId"); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contextId");
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (39)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("transforms"); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID0016))); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customConfigElements"); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7026, ConfigurationStrings.SessionTokenRequirement))); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7017, attribute.Value))); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7018))); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7004, attribute.LocalName, customConfigElement.LocalName))); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4296))); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenDescriptor"); 245throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4272))); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, tokenDescriptor.Token.GetType().ToString()))); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("principal"); 289throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4272))); 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 351throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("tokenResolver"); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException( 393throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException( 400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4242))); 445throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4237))); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4229, sessionToken.ContextId, contextId))); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4227, sessionToken.Id, id))); 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4243))); 517throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID0016)); 582throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4292, token.GetType().ToString(), this.GetType().ToString()))); 593if (DiagnosticUtility.ShouldTrace(TraceEventType.Verbose)) 637throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 642throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpointId"); 654throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(errorMessage)); 676throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityToken"); 681throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4274))); 694throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenNotYetValidException(SR.GetString(SR.ID4255, securityToken.ValidTo, securityToken.ValidFrom, utcNow))); 699throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenExpiredException(SR.GetString(SR.ID4255, securityToken.ValidTo, securityToken.ValidFrom, utcNow))); 713throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sessionToken"); 740throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 745throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 751throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4046, token, TokenType))); 772throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4050)));
System\IdentityModel\Tokens\SigningCredentials.cs (3)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signingKey")); 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signatureAlgorithm")); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("digestAlgorithm"));
System\IdentityModel\Tokens\SymmetricKey.cs (2)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("symmetricKey")); 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SymmetricKeyLengthTooShort, symmetricKey.Length)));
System\IdentityModel\Tokens\SymmetricProofDescriptor.cs (4)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key"); 152throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sourceEntropy"); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("sourceEntropy", SR.GetString(SR.ID2058)); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("response");
System\IdentityModel\Tokens\TokenReplayCache.cs (1)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\UserNameSecurityToken.cs (2)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("userName"); 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.UserNameCannotBeEmpty));
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (9)
50throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4059, type, WSSecurity10Constants.UPTokenPasswordTextValue))); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4060, reader.LocalName, reader.NamespaceURI, WSSecurity10Constants.Elements.UsernameToken, WSSecurity10Constants.Namespace))); 158throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4061)); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(UserNameSecurityToken)));
System\IdentityModel\Tokens\WindowsSecurityToken.cs (3)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windowsIdentity"); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (5)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(UserNameSecurityToken))); 68throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID4062)); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4063, userName), new Win32Exception(error)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (12)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("valueTypeUris"); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI))); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType()))); 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SR.GetString(SR.UnknownEncodingInKeyIdentifier))); 605throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.MultipleSamlAuthorityBindingsInReference))); 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.RequiredAttributeMissing, XD.SamlDictionary.Binding.Value, XD.SamlDictionary.AuthorityBinding.Value))); 616throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.RequiredAttributeMissing, XD.SamlDictionary.Location.Value, XD.SamlDictionary.AuthorityBinding.Value))); 621throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.RequiredAttributeMissing, XD.SamlDictionary.AuthorityKind.Value, XD.SamlDictionary.AuthorityBinding.Value))); 637throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.MultipleKeyIdentifiersInReference))); 650throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.DidNotFindKeyIdentifierInReference))); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 854throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer");
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (38)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 72DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyNotSupported))); 101DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PublicKeyNotSupported))); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.MissingPrivateKey))); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyNotRSA))); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyExchangeNotSupported))); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PublicKeyNotRSA))); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.MissingPrivateKey))); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPrivateKeyMisMatch))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPrivateKeyMisMatch))); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPublicKeyMisMatch))); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPublicKeyMisMatch))); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 249throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 289throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPublicKeyMisMatch), e)); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PublicKeyNotDSA))); 332throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PublicKeyNotRSA))); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.MissingPrivateKey))); 350throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AlgorithmAndPrivateKeyMisMatch), e)); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SR.GetString(SR.UnsupportedAlgorithmForCryptoOperation, 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyNotDSA))); 398throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyNotRSA))); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.PrivateKeyNotRSA))); 409throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedCryptoAlgorithm, algorithm))); 421throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("asymmetricAlgorithm")); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm")); 472throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SR.GetString(SR.EmptyOrNullArgumentString, "algorithm"));
System\IdentityModel\Tokens\X509CertificateStoreTokenResolver.cs (4)
50throw DiagnosticUtility.ThrowHelperArgumentNullOrEmptyString("storeName"); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause"); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifier"); 161throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyIdentifierClause");
System\IdentityModel\Tokens\X509DataSecurityKeyIdentifierClauseSerializer.cs (10)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifierClause"); 67throw DiagnosticUtility.ThrowHelperInvalidOperation( 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifierClause"); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("securityKeyIdentifierClause", SR.GetString(SR.ID4259, securityKeyIdentifierClause.GetType())); 190throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID3032, dictionaryReader.LocalName, dictionaryReader.NamespaceURI, XmlSignatureConstants.Elements.X509IssuerName, XmlSignatureConstants.Namespace)); 197throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID3032, dictionaryReader.LocalName, dictionaryReader.NamespaceURI, XmlSignatureConstants.Elements.X509SerialNumber, XmlSignatureConstants.Namespace)); 217throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4258, XmlSignatureConstants.Elements.X509SKI, XmlSignatureConstants.Namespace)); 260throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4258, XmlSignatureConstants.Elements.X509Certificate, XmlSignatureConstants.Namespace));
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (4)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuerName"); 23throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuerSerialNumber"); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 100DiagnosticUtility.TraceHandledException(e, TraceEventType.Warning);
System\IdentityModel\Tokens\X509NTAuthChainTrustValidator.cs (2)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\IdentityModel\Tokens\X509RawDataKeyIdentifierClause.cs (1)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate");
System\IdentityModel\Tokens\X509SecurityToken.cs (3)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (28)
94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("customConfigElements"); 116throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7026, ConfigurationStrings.X509SecurityTokenHandlerRequirement)); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, customConfigElement.LocalName))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, customConfigElement.LocalName))); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7011, attribute.LocalName, customConfigElement.LocalName))); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID7004, attribute.LocalName, customConfigElement.LocalName))); 215throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID7028)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID7007, customValidatorType)); 337throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 353throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifierClause"); 404throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 423throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 429throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 443throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 468throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4068))); 500throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 506throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(X509SecurityToken))); 511throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4274)); 523throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.ID4257, 529throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4277)); 535throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4175))); 618throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 623throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyIdentifierClause"); 628throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4261)); 645throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 650throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("token"); 656throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(X509SecurityToken)));
System\IdentityModel\Tokens\X509SigningCredentials.cs (1)
125throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID2057));
System\IdentityModel\Tokens\X509SubjectKeyIdentifierClause.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate");
System\IdentityModel\Tokens\X509ThumbprintKeyIdentifierClause.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate");
System\IdentityModel\Tokens\X509WindowsSecurityToken.cs (1)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windowsIdentity");
System\IdentityModel\Tokens\XmlDsigSep2000.cs (3)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new XmlException( SR.GetString( SR.ErrorDeserializingKeyIdentifierClause ) ) ); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new SecurityMessageSerializationException( SR.GetString( SR.NoKeyInfoClausesToWrite ) ) ); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new SecurityMessageSerializationException( SR.GetString( SR.InvalidX509RawData ) ) );
System\IdentityModel\TypedAsyncResult.cs (2)
75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull( "result" ); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "result", SR.GetString( SR.ID2004, typeof( TypedAsyncResult<T>), result.GetType() ) );
System\IdentityModel\UniqueId.cs (2)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("prefix"); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("prefix");
System\IdentityModel\UnsupportedTokenTypeBadRequestException.cs (2)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("info"); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("info");
System\IdentityModel\WrappedReader.cs (9)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InnerReaderMustBeAtElement))); 305throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.UnsupportedNodeTypeInReader, 358throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("initialSize", SR.GetString(SR.ValueMustBeGreaterThanZero))); 460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entries"); 536DiagnosticUtility.DebugAssert(this.NodeType == XmlNodeType.Element, ""); 560DiagnosticUtility.DebugAssert(this.NodeType == XmlNodeType.Attribute, ""); 576throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("writer")); 580throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.XmlTokenBufferIsEmpty)));
System\IdentityModel\WrappedXmlDictionaryReader.cs (2)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader"); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("xmlDictionaryReaderQuotas");
System\IdentityModel\X509CertificateValidatorEx.cs (1)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4256)));
System\IdentityModel\X509Util.cs (8)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID1001, certificate.Thumbprint))); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID1039, certificate.Thumbprint), e)); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID1002, certificate.Thumbprint))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 127throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate"); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuerNameRegistry"); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("certificate");
System\IdentityModel\XD.cs (15)
190throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 382throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 432throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 572throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 668throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 803throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 860throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 949throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 1098throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 1221throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 1341throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value)); 1446throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));
System\IdentityModel\XmlAttributeHolder.cs (1)
100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.XmlBufferQuotaExceeded)));
System\IdentityModel\XmlBuffer.cs (6)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize, 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException());
System\IdentityModel\XmlHelper.cs (5)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.RequiredAttributeMissing, attrName, elementName))); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ExpectedElementMissing, elementName, elementNamespace))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName))); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.Name)));
System\IdentityModel\XmlUtil.cs (4)
93DiagnosticUtility.DebugAssert(j > i, "Logic error in XmlUtil.Trim()."); 187throw DiagnosticUtility.ThrowHelperXml(reader, 194throw DiagnosticUtility.ThrowHelperXml(reader, 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("nodeList");
System\ServiceModel\Security\EncryptedKey.cs (3)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BadEncryptionState))); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BadEncryptionState))); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappedKey");
System\ServiceModel\Security\EncryptedType.cs (4)
330throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer"); 374throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SR.GetString(SR.BadEncryptionState))); 386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SR.GetString(SR.BadEncryptionState))); 418throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(
System\ServiceModel\Security\KeyNameIdentifierClause.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyName");
System\ServiceModel\Security\ReferenceList.cs (8)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SR.GetString(SR.ReferenceListCannotBeEmpty))); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("id")); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ReferenceListCannotBeEmpty))); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Security\RelAssertionDirectKeyIdentifierClause.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.AssertionIdCannotBeNullOrEmpty));
System\ServiceModel\Security\SamlAssertionDirectKeyIdentifierClause.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.SamlUriCannotBeNullOrEmpty));
System\ServiceModel\Security\SecurityContextKeyIdentifierClause.cs (2)
10using DiagnosticUtility = System.IdentityModel.DiagnosticUtility; 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contextId");
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (3)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keySizeInBits", SR.GetString(SR.ValueMustBeInRange, 0, 512))); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keySizeInBits", SR.GetString(SR.KeyLengthMustBeMultipleOfEight, keySizeInBits))); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("key");
System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (5)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappingSspiContext"); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappingToken"); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("id"); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappingAlgorithm"); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("securityKeyToWrap");