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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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)));