File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ private void checkMessageSignature(
339339            "Could not encode leaf certificate for comparison" , e );
340340      }
341341    } else  {
342-       throw  new  KeylessVerificationException ("Unsupported hashedrekord version"  );
342+       throw  new  KeylessVerificationException ("Unsupported hashedrekord version: "   +  version );
343343    }
344344  }
345345
@@ -505,6 +505,8 @@ private void checkDsseEnvelope(
505505        throw  new  KeylessVerificationException (
506506            "Could not encode leaf certificate for comparison" , e );
507507      }
508+     } else  {
509+       throw  new  KeylessVerificationException ("Unsupported DSSE version: "  + version );
508510    }
509511  }
510512}
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ public void testVerify_unsupportedRekorVersion_rekorV2() throws Exception {
573573                    Path .of (artifact ),
574574                    Bundle .from (new  StringReader (invalidBundleFile )),
575575                    VerificationOptions .empty ()));
576-     Assertions .assertEquals ("Unsupported hashedrekord version" , ex .getMessage ());
576+     Assertions .assertEquals ("Unsupported hashedrekord version: 0.0.3 " , ex .getMessage ());
577577  }
578578
579579  @ Test 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments