306 references to GetResourceString
System.Security (306)
system\security\cryptography\cryptoapi.cs (10)
2573throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pvKey"); 2688throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore"); 2720throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore"); 2725throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pCertContext"); 2749throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore"); 2754throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "pCertContext"); 2778throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidValue"), "lpszStoreProvider"); 2876throw new InvalidOperationException(SecurityResources.GetResourceString("Environment_NotInteractive")); 2892throw new InvalidOperationException(SecurityResources.GetResourceString("Environment_NotInteractive")); 2913throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "hCertStore");
system\security\cryptography\cryptographicattribute.cs (6)
56throw new InvalidOperationException(SecurityResources.GetResourceString("InvalidOperation_DuplicateItemNotAllowed")); 144throw new InvalidOperationException(SecurityResources.GetResourceString("InvalidOperation_DuplicateItemNotAllowed")); 166throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Pkcs9_MultipleSigningTimeNotAllowed")); 211throw new ArgumentException(SecurityResources.GetResourceString("Arg_RankMultiDimNotSupported")); 213throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 215throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\dataprotection.cs (12)
44throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 80throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_DpApi_ProfileMayNotBeLoaded")); 98throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 119throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 161throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 184throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 193throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_DpApi_InvalidMemoryLength")); 205throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 215throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 224throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_DpApi_InvalidMemoryLength")); 236throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_PlatformRequiresNT")); 243throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), (int) scope));
system\security\cryptography\dataprotector.cs (4)
36throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_DataProtector_InvalidAppNameOrPurpose"), "applicationName"); 38throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_DataProtector_InvalidAppNameOrPurpose"), "primaryPurpose"); 47throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_DataProtector_InvalidAppNameOrPurpose"), "specificPurposes"); 192throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_DataProtector_InvalidPurpose"));
system\security\cryptography\pkcs\envelopedpkcs7.cs (5)
163throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_MessageNotEncrypted")); 214throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Envelope_Empty_Content")); 259throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_NoEncryptedMessageToEncode")); 393throw new ArgumentNullException(SecurityResources.GetResourceString("Cryptography_Cms_RecipientCertificateNotFound")); 407throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Not_Supported"));
system\security\cryptography\pkcs\pkcs7recipient.cs (6)
65throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Not_Supported")); 68throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), recipientIdentifierType.ToString()); 107throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 146throw new ArgumentException(SecurityResources.GetResourceString("Arg_RankMultiDimNotSupported")); 148throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 150throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\pkcs\pkcs7signer.cs (3)
89throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), "value")); 92throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), "value")); 139throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), "value"));
system\security\cryptography\pkcs\pkcs9attribute.cs (2)
43throw new ArgumentException(SecurityResources.GetResourceString("Arg_EmptyOrNullString"), "oid.Value"); 61throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Pkcs9_AttributeMismatch"));
system\security\cryptography\pkcs\pkcsmisc.cs (12)
134throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), certId.dwIdChoice.ToString(CultureInfo.InvariantCulture)); 161throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 166throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Not_Supported")); 169throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 173throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), type.ToString()); 241throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), certId.dwIdChoice.ToString(CultureInfo.InvariantCulture)); 272throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 277throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Not_Supported")); 280throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 285throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Not_Supported")); 288throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 292throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type"), type.ToString());
system\security\cryptography\pkcs\recipientinfo.cs (7)
275throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_Key_Agree_Date_Not_Available")); 290throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_Key_Agree_Other_Key_Attribute_Not_Available")); 445throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Originator_Identifier_Choice"), keyAgree.dwOriginatorChoice.ToString(CultureInfo.CurrentCulture)); 469throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 493throw new ArgumentException(SecurityResources.GetResourceString("Arg_RankMultiDimNotSupported")); 495throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 497throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\pkcs\signedpkcs7.cs (8)
129throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_MessageNotSigned")); 170throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Sign_Empty_Content")); 174throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Sign_No_Signature_First_Signer")); 183throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_RecipientCertificateNotFound")); 218throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_MessageNotSigned")); 232throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 257throw new InvalidOperationException(SecurityResources.GetResourceString("Cryptography_Cms_MessageNotSigned")); 270SecurityResources.GetResourceString("Cryptography_Cms_MessageNotSigned"));
system\security\cryptography\pkcs\signerinfo.cs (4)
793throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 819throw new ArgumentException(SecurityResources.GetResourceString("Arg_RankMultiDimNotSupported")); 821throw new ArgumentOutOfRangeException("index", SecurityResources.GetResourceString("ArgumentOutOfRange_Index")); 823throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\x509\x509ui.cs (2)
53throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_InvalidHandle"), "safeCertContext"); 93throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), "selectionFlag"));
system\security\cryptography\x509\x509utils.cs (1)
303throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_InvalidContextHandle"), "pCertContext");
system\security\cryptography\xml\c14nutil.cs (3)
601throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "node"); 619throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 643throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value");
system\security\cryptography\xml\cipherdata.cs (5)
51throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CipherValueElementRequired")); 64throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CipherValueElementRequired")); 89throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CipherValueElementRequired")); 106throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CipherValueElementRequired")); 112throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CipherValueElementRequired"));
system\security\cryptography\xml\encrypteddata.cs (2)
54throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingCipherData")); 109throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingCipherData"));
system\security\cryptography\xml\encryptedkey.cs (5)
98throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingCipherData")); 184throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingCipherData")); 239throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 261throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 296throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value");
system\security\cryptography\xml\encryptedreference.cs (4)
46throw new ArgumentNullException(SecurityResources.GetResourceString("Cryptography_Xml_UriRequired")); 92throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_ReferenceTypeRequired")); 163throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_ReferenceTypeRequired")); 184throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriRequired"));
system\security\cryptography\xml\encryptedtype.cs (10)
147throw new ArgumentOutOfRangeException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidKeySize")); 217throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidEncryptionProperty")); 237throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidEncryptionProperty")); 266throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidEncryptionProperty")); 295throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 311throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 323throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 335throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 347throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value"); 387throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "value");
system\security\cryptography\xml\encryptedxml.cs (24)
220throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotSupported")); 227throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotSupported")); 239throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotSupported")); 247throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotSupported")); 272throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingCipherData")); 281throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri); 284throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri); 287throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), cipherData.CipherReference.Uri); 310throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 325throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotSupported")); 391throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 396throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingDecryptionKey")); 400throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 431throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 450throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 489throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 493throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingAlgorithm")); 515throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_NotSupportedCryptographicTransform")); 533throw new NotSupportedException(SecurityResources.GetResourceString("NotSupported_KeyAlgorithm")); 573throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingEncryptionKey")); 606throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_NotSupportedCryptographicTransform")); 642throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingDecryptionKey")); 840throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_NotSupportedCryptographicTransform")); 876throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_NotSupportedCryptographicTransform"));
system\security\cryptography\xml\keyinfo.cs (8)
77throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo"); 88throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo/KeyValue"); 445throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfoEncryptedKey"); 451throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfoEncryptedKey"); 469throw new ArgumentException(SecurityResources.GetResourceString("Arg_EmptyOrNullString"), "issuerName"); 471throw new ArgumentException(SecurityResources.GetResourceString("Arg_EmptyOrNullString"), "serialNumber"); 725throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "X509Data"); 737throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "IssuerSerial");
system\security\cryptography\xml\reference.cs (20)
187throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_DigestMethodRequired")); 195throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_DigestValueRequired")); 214throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference"); 225throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms"); 230throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms"); 236throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms"); 239throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/Transforms"); 245throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 249throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 278throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestMethod"); 282throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestMethod"); 287throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestValue"); 291throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference/DigestValue"); 296throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Reference"); 323throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CreateHashAlgorithmFailed")); 355throw new CryptographicException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Cryptography_Xml_SelfReferenceRequiresContext"), m_uri)); 369throw new CryptographicException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Cryptography_Xml_SelfReferenceRequiresContext"),m_uri)); 398throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference")); 429throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), m_uri); 438throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriNotResolved"), m_uri);
system\security\cryptography\xml\signature.cs (9)
105throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignedInfoRequired")); 111throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureValueRequired")); 142throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature"); 147throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature"); 156throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"),"SignedInfo"); 166throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"),"SignatureValue"); 172throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignatureValue"); 179throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "KeyInfo"); 214throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Signature");
system\security\cryptography\xml\signedinfo.cs (11)
98throw new CryptographicException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Cryptography_Xml_CreateTransformFailed"), this.CanonicalizationMethod)); 161throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureMethodRequired")); 177throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_ReferenceElementRequired")); 194throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo"); 203throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo"); 208throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/CanonicalizationMethod"); 213throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/CanonicalizationMethod"); 221throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/SignatureMethod"); 226throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/SignatureMethod"); 240throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo/Reference"); 253throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "SignedInfo");
system\security\cryptography\xml\signedxml.cs (24)
278SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_SignedInfo")); 284SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_References")); 298SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_SignedInfo")); 303SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_References")); 326SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_X509KeyUsage")); 340SignedXmlDebugLog.LogVerificationFailure(this, SecurityResources.GetResourceString("Log_VerificationFailed_X509Chain")); 362throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_LoadKeyFailed")); 373throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CreatedKeyFailed")); 380throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureDescriptionNotCreated")); 383throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CreateHashAlgorithmFailed")); 397throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureMethodKeyMismatch")); 406throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidSignatureLength")); 408throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidSignatureLength2")); 431throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureMethodKeyMismatch")); 447throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_KeyInfoRequired")); 549SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference")); 814throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference")); 972throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureDescriptionNotCreated")); 981throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_CreateHashAlgorithmFailed")); 1009throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidSignatureLength")); 1011throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidSignatureLength2")); 1013throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_SignatureValueRequired")); 1015throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidSignatureLength")); 1054throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference"));
system\security\cryptography\xml\SignedXmlDebugLog.cs (40)
283SecurityResources.GetResourceString("Log_BeginCanonicalization"), 294SecurityResources.GetResourceString("Log_CanonicalizationSettings"), 317SecurityResources.GetResourceString("Log_CheckSignatureFormat"), 336SecurityResources.GetResourceString("Log_CheckSignedInfo"), 354SecurityResources.GetResourceString("Log_BeginSignatureComputation")); 359SecurityResources.GetResourceString("Log_XmlContext"), 381SecurityResources.GetResourceString("Log_BeginSignatureVerification")); 386SecurityResources.GetResourceString("Log_XmlContext"), 408SecurityResources.GetResourceString("Log_CanonicalizedOutput"), 427string logMessage = result ? SecurityResources.GetResourceString("Log_FormatValidationSuccessful") : 428SecurityResources.GetResourceString("Log_FormatValidationNotSuccessful"); 454SecurityResources.GetResourceString("Log_UnsafeCanonicalizationMethod"), 499SecurityResources.GetResourceString("Log_UnsafeTransformMethod"), 519SecurityResources.GetResourceString("Log_PropagatingNamespace"), 533SecurityResources.GetResourceString("Log_NoNamespacesPropagated")); 565SecurityResources.GetResourceString("Log_TransformedReferenceContents"), 601SecurityResources.GetResourceString("Log_SigningAsymmetric"), 627SecurityResources.GetResourceString("Log_SigningHmac"), 650SecurityResources.GetResourceString("Log_SigningReference"), 673SecurityResources.GetResourceString("Log_VerificationFailed"), 694string resource = verified ? SecurityResources.GetResourceString("Log_VerificationWithKeySuccessful") : 695SecurityResources.GetResourceString("Log_VerificationWithKeyNotSuccessful"); 719SecurityResources.GetResourceString("Log_KeyUsages"), 742SecurityResources.GetResourceString("Log_VerifyReference"), 775SecurityResources.GetResourceString("Log_ReferenceHash"), 814SecurityResources.GetResourceString("Log_VerifySignedInfoAsymmetric"), 827SecurityResources.GetResourceString("Log_ActualHashValue"), 832SecurityResources.GetResourceString("Log_RawSignatureValue"), 855SecurityResources.GetResourceString("Log_VerifySignedInfoHmac"), 865SecurityResources.GetResourceString("Log_ActualHashValue"), 870SecurityResources.GetResourceString("Log_RawSignatureValue"), 889SecurityResources.GetResourceString("Log_BuildX509Chain"), 900SecurityResources.GetResourceString("Log_RevocationMode"), 905SecurityResources.GetResourceString("Log_RevocationFlag"), 910SecurityResources.GetResourceString("Log_VerificationFlag"), 915SecurityResources.GetResourceString("Log_VerificationTime"), 920SecurityResources.GetResourceString("Log_UrlTimeout"), 930SecurityResources.GetResourceString("Log_X509ChainError"), 945chainElements.Append(SecurityResources.GetResourceString("Log_CertificateChain")); 973SecurityResources.GetResourceString("Log_SignedXmlRecursionLimit"),
system\security\cryptography\xml\symmetrickeywrap.cs (6)
70throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_KW_BadKeySize")); 94throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_BadWrappedKeySize")); 103throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_KW_BadKeySize")); 152throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_KW_BadKeySize")); 170throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_BadWrappedKeySize")); 200throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_BadWrappedKeySize"));
system\security\cryptography\xml\transform.cs (45)
65throw new ArgumentException( SecurityResources.GetResourceString("ArgumentOutOfRange_Index"), "index"); 96throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType")); 108throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType")); 120throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType")); 123throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType")); 141throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType")); 174throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidElement"), "Transforms"); 182throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 393throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 414throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "obj"); 424throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 488throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 494throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 512throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_IncorrectObjectType"), "obj"); 534throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 575throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 653throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 683throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 696throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 713throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 719throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 811throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 848throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 857throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 866throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 933throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 974throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 1005throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_EnvelopedSignatureRequiresContext")); 1016throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_EnvelopedSignatureRequiresContext")); 1033throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_EnvelopedSignatureRequiresContext")); 1086if (_inputNodeList != null) throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 1089throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 1170throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 1179throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UriRequired")); 1181throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 1187throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 1269throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_MissingDecryptionKey")); 1324throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 1388throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_XrmlUnableToDecryptGrant")); 1428throw new ArgumentException(SecurityResources.GetResourceString("Cryptography_Xml_TransformIncorrectInputType"), "type"); 1436throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_UnknownTransform")); 1443throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_XrmlMissingContext")); 1459throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_XrmlMissingIssuer")); 1468throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_XrmlMissingLicence")); 1486throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_XrmlMissingIRelDecryptor"));
system\security\cryptography\xml\utils.cs (2)
616throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference")); 633throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Xml_InvalidReference"));
system\security\permissions\dataprotectionpermission.cs (6)
26throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidPermissionState")); 68throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 83throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 100throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 131throw new ArgumentException(SecurityResources.GetResourceString("Argument_InvalidClassAttribute"), "securityElement"); 150throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Arg_EnumIllegalVal"), (int)flags));