Class RecursiveJarSigner
java.lang.Object
org.eclipse.cbi.maven.plugins.jarsigner.FilteredJarSigner
org.eclipse.cbi.maven.plugins.jarsigner.RecursiveJarSigner
- All Implemented Interfaces:
JarSigner
- Direct Known Subclasses:
AutoValue_RecursiveJarSigner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate final classNested classes/interfaces inherited from class org.eclipse.cbi.maven.plugins.jarsigner.FilteredJarSigner
FilteredJarSigner.Filter, FilteredJarSigner.FiltersNested classes/interfaces inherited from interface org.eclipse.cbi.maven.plugins.jarsigner.JarSigner
JarSigner.Options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecursiveJarSigner.Builderbuilder()(package private) abstract JarSignerdelegate()(package private) intdoSignJar(Path jar, JarSigner.Options options) private intdoSignJarRecursively(Path file, JarSigner.Options options, int currentDepth) Sign this Jar and its nested Jar.(package private) abstract org.apache.maven.plugin.logging.Loglog()The log on which feedback will be provided.(package private) abstract intmaxDepth()private intsignNestedJars(Path file, JarSigner.Options options, int currentDepth) Signs the inner jars in the given jar fileMethods inherited from class org.eclipse.cbi.maven.plugins.jarsigner.FilteredJarSigner
filter, sign
-
Constructor Details
-
RecursiveJarSigner
public RecursiveJarSigner()
-
-
Method Details
-
delegate
-
maxDepth
abstract int maxDepth() -
log
abstract org.apache.maven.plugin.logging.Log log()The log on which feedback will be provided. -
doSignJar
- Specified by:
doSignJarin classFilteredJarSigner- Throws:
IOException
-
doSignJarRecursively
private int doSignJarRecursively(Path file, JarSigner.Options options, int currentDepth) throws IOException Sign this Jar and its nested Jar.- Parameters:
file- the file to signcurrentDepth- the current nesting depth of the current file.digestAlgorithm-signedFile-- Returns:
- the number of Jar that has been signed.
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOException
-
signNestedJars
private int signNestedJars(Path file, JarSigner.Options options, int currentDepth) throws IOException Signs the inner jars in the given jar file- Parameters:
file- jar file containing inner jars to be signedcurrentDepth-digestAlgorithm-innerJars- A list of inner jars that needs to be signed- Returns:
- the number of Jar that has been signed.
- Throws:
IOException
-
builder
-