in src/main/java/org/apache/maven/shared/jarsigner/JarSignerUtil.java [150:167]
public static boolean isArchiveSigned(final File jarFile) throws IOException {
if (jarFile == null) {
throw new NullPointerException("jarFile");
}
try (ZipInputStream in = new ZipInputStream(new BufferedInputStream(new FileInputStream(jarFile)))) {
boolean signed = false;
for (ZipEntry ze = in.getNextEntry(); ze != null; ze = in.getNextEntry()) {
if (isSignatureFile(ze.getName())) {
signed = true;
break;
}
}
return signed;
}
}