Package aQute.bnd.signing
Class JartoolSigner
- java.lang.Object
-
- aQute.bnd.signing.JartoolSigner
-
- All Implemented Interfaces:
Plugin,RegistryPlugin,SignerPlugin
public class JartoolSigner extends java.lang.Object implements Plugin, SignerPlugin, RegistryPlugin
Sign the jar file. -sign :[ ';' 'password:=' ] [ ';' 'keystore:=' ] [ ';' 'sign-password:=' ] ( ',' ... )* - Author:
- aqute
-
-
Constructor Summary
Constructors Constructor Description JartoolSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetProperties(java.util.Map<java.lang.String,java.lang.String> map)Give the plugin the remaining properties.voidsetRegistry(Registry registry)voidsetReporter(aQute.service.reporter.Reporter processor)Set the current reporter.voidsign(Builder builder, java.lang.String alias)Sign the current jar.
-
-
-
Method Detail
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Description copied from interface:PluginGive the plugin the remaining properties. When a plugin is declared, the clause can contain extra properties. All the properties and directives are given to the plugin to use.- Specified by:
setPropertiesin interfacePlugin- Parameters:
map- attributes and directives for this plugin's clause
-
setReporter
public void setReporter(aQute.service.reporter.Reporter processor)
Description copied from interface:PluginSet the current reporter. This is called at init time. This plugin should report all errors and warnings to this reporter.- Specified by:
setReporterin interfacePlugin
-
setRegistry
public void setRegistry(Registry registry)
- Specified by:
setRegistryin interfaceRegistryPlugin
-
sign
public void sign(Builder builder, java.lang.String alias) throws java.lang.Exception
Description copied from interface:SignerPluginSign the current jar. The alias is the given certificate keystore.- Specified by:
signin interfaceSignerPlugin- Parameters:
builder- The current builder that contains the jar to signalias- The keystore certificate alias- Throws:
java.lang.Exception- When anything goes wrong
-
-