@@ -73,7 +73,7 @@ function createMultiSignedXml(xml: string): string {
7373 return sig2 . getSignedXml ( ) ;
7474}
7575
76- describe ( "XmlValidator " , function ( ) {
76+ describe ( "XmlDSigValidator " , function ( ) {
7777 describe ( "constructor" , function ( ) {
7878 it ( "should create validator with public certificate" , function ( ) {
7979 const validator = new XmlDSigValidator ( {
@@ -113,7 +113,7 @@ describe("XmlValidator", function () {
113113
114114 it ( "should throw error when keySelector is missing" , function ( ) {
115115 expect ( ( ) => new XmlDSigValidator ( { } ) ) . to . throw (
116- "XmlValidator requires a keySelector in options." ,
116+ "XmlDSigValidator requires a keySelector in options." ,
117117 ) ;
118118 } ) ;
119119 } ) ;
@@ -284,7 +284,7 @@ describe("XmlValidator", function () {
284284 } ) ;
285285} ) ;
286286
287- describe ( "XmlValidator Certificate Expiration" , function ( ) {
287+ describe ( "XmlDSigValidator Certificate Expiration" , function ( ) {
288288 it ( "should reject expired certificate when checkCertExpiration is true" , function ( ) {
289289 const xml = "<root><test>content</test></root>" ;
290290
@@ -396,7 +396,7 @@ describe("XmlValidator Certificate Expiration", function () {
396396 } ) ;
397397} ) ;
398398
399- describe ( "XmlValidator Security Features" , function ( ) {
399+ describe ( "XmlDSigValidator Security Features" , function ( ) {
400400 it ( "should prevent signature wrapping attacks by only returning signed content" , function ( ) {
401401 const xml = "<root><test>content</test><unsigned>malicious</unsigned></root>" ;
402402 const signedXml = createSignedXml ( xml ) ;
@@ -458,7 +458,7 @@ describe("XmlValidator Security Features", function () {
458458 } ) ;
459459} ) ;
460460
461- describe ( "XmlValidator Truststore" , function ( ) {
461+ describe ( "XmlDSigValidator Truststore" , function ( ) {
462462 it ( "should validate document signed with chain certificate when root is in truststore" , function ( ) {
463463 const xml = "<root><test>content</test></root>" ;
464464
@@ -618,7 +618,7 @@ describe("XmlValidator Truststore", function () {
618618 } ) ;
619619} ) ;
620620
621- describe ( "XmlValidator Integration" , function ( ) {
621+ describe ( "XmlDSigValidator Integration" , function ( ) {
622622 it ( "should work with real-world signed XML documents" , function ( ) {
623623 // Test with a more complex XML structure
624624 const xml = `
@@ -680,11 +680,11 @@ describe("XmlValidator Integration", function () {
680680 expect ( result . signedReferences ) . to . have . length ( 1 ) ;
681681 } ) ;
682682
683- it ( "should validate signatures created by XmlSigner " , function ( ) {
684- // This test ensures compatibility between XmlSigner and XmlValidator
683+ it ( "should validate signatures created by XmlDSigSigner " , function ( ) {
684+ // This test ensures compatibility between XmlDSigSigner and XmlDSigValidator
685685 const xml = '<root><test id="test1">content</test></root>' ;
686686
687- // Create signature using SignedXml (simulating XmlSigner output)
687+ // Create signature using SignedXml (simulating XmlDSigSigner output)
688688 const sig = new SignedXml ( {
689689 privateKey,
690690 canonicalizationAlgorithm : canonicalization . EXCLUSIVE_C14N ,
@@ -700,7 +700,7 @@ describe("XmlValidator Integration", function () {
700700 sig . computeSignature ( xml ) ;
701701 const signedXml = sig . getSignedXml ( ) ;
702702
703- // Validate using XmlValidator
703+ // Validate using XmlDSigValidator
704704 const validator = new XmlDSigValidator ( {
705705 keySelector : { publicCert } ,
706706 } ) ;
0 commit comments