Class SignedJars

java.lang.Object
dev.equo.solstice.SignedJars

public class SignedJars extends Object
Mechanism for stripping signatures from jars.

If a given package contains classes from multiple jars, all of those jars must have the same signature. This is especially a problem with nested jars - under real OSGi, nested jars are loaded from within the parent jar. But under Solstice and its NestedJars functionality, you sometimes have an unsigned nested jar contributing classes to the same package as its signed parent. The solution is to simply strip the signature off of all jars involved, since signing isn't very helpful anyway.

If you encounter the unusual situation where a jar needs to have its signature stripped due to its nested jars, feel free to submit a PR to update the needsStrip variable.

You can also check out the main below to debug signing issues in a given package.