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 class
private final class
Nested classes/interfaces inherited from class org.eclipse.cbi.maven.plugins.jarsigner.FilteredJarSigner
FilteredJarSigner.Filter, FilteredJarSigner.Filters
Nested classes/interfaces inherited from interface org.eclipse.cbi.maven.plugins.jarsigner.JarSigner
JarSigner.Options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecursiveJarSigner.Builder
builder()
(package private) abstract JarSigner
delegate()
(package private) int
doSignJar
(Path jar, JarSigner.Options options) private int
doSignJarRecursively
(Path file, JarSigner.Options options, int currentDepth) Sign this Jar and its nested Jar.(package private) abstract org.apache.maven.plugin.logging.Log
log()
The log on which feedback will be provided.(package private) abstract int
maxDepth()
private int
signNestedJars
(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:
doSignJar
in 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.MojoExecutionException
IOException
-
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
-