Accept lineage for source stamps in signer am: 271820bebc am: 70fae881ed

Original change: https://googleplex-android-review.googlesource.com/c/platform/tools/apksig/+/12691623

Change-Id: I5b00672e81bfc4cda91e744d4f38518b08f7e478
diff --git a/src/main/java/com/android/apksig/DefaultApkSignerEngine.java b/src/main/java/com/android/apksig/DefaultApkSignerEngine.java
index 5fb2600..45ea9ec 100644
--- a/src/main/java/com/android/apksig/DefaultApkSignerEngine.java
+++ b/src/main/java/com/android/apksig/DefaultApkSignerEngine.java
@@ -368,13 +368,12 @@
         return processedConfigs;
     }
 
-    private ApkSigningBlockUtils.SignerConfig createV4SignerConfig()
-            throws InvalidKeyException, IllegalStateException {
+    private ApkSigningBlockUtils.SignerConfig createV4SignerConfig() throws InvalidKeyException {
         List<ApkSigningBlockUtils.SignerConfig> configs =
                 createSigningBlockSignerConfigs(
                         true, ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V4);
         if (configs.size() != 1) {
-            throw new IllegalStateException("Only accepting one signer config for V4 Signature.");
+            throw new InvalidKeyException("Only accepting one signer config for V4 Signature.");
         }
         return configs.get(0);
     }