Package aQute.bnd.signing
Class JartoolSigner
java.lang.Object
aQute.bnd.signing.JartoolSigner
- All Implemented Interfaces:
Plugin
,RegistryPlugin
,SignerPlugin
Sign the jar file. -sign : [ ';' 'password:=' ] [ ';'
'keystore:=' ] [ ';' 'sign-password:=' ] ( ',' ... )*
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) String
(package private) String
private static final org.slf4j.Logger
(package private) String
private Processor
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringBuilder
collect
(InputStream in) void
setProperties
(Map<String, String> map) Give the plugin the remaining properties.void
setRegistry
(Registry registry) void
setReporter
(Reporter processor) Set the current reporter.void
Sign the current jar.
-
Field Details
-
Constructor Details
-
JartoolSigner
public JartoolSigner()
-
-
Method Details
-
setProperties
Description copied from interface:Plugin
Give 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:
setProperties
in interfacePlugin
- Parameters:
map
- attributes and directives for this plugin's clause
-
setReporter
Description copied from interface:Plugin
Set the current reporter. This is called at init time. This plugin should report all errors and warnings to this reporter.- Specified by:
setReporter
in interfacePlugin
-
setRegistry
- Specified by:
setRegistry
in interfaceRegistryPlugin
-
sign
Description copied from interface:SignerPlugin
Sign the current jar. The alias is the given certificate keystore.- Specified by:
sign
in interfaceSignerPlugin
- Parameters:
builder
- The current builder that contains the jar to signalias
- The keystore certificate alias- Throws:
Exception
- When anything goes wrong
-
collect
- Throws:
Exception
-