Package aQute.bnd.signing
Class JartoolSigner
java.lang.Object
aQute.bnd.signing.JartoolSigner
- All Implemented Interfaces:
Plugin,SignerPlugin
Sign the jar file. -sign : [ ';' 'password:=' ] [ ';'
'keystore:=' ] [ ';' 'sign-password:=' ] ( ',' ... )*
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringprivate static Pattern(package private) String(package private) Stringprivate static final org.slf4j.Logger(package private) String(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) StringBuildercollect(InputStream in) voidsetProperties(Map<String, String> map) Give the plugin the remaining properties.voidsetReporter(Reporter processor) Set the current reporter.voidSign the current jar.
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
keystore
String keystore -
storetype
String storetype -
path
String path -
storepass
String storepass -
keypass
String keypass -
sigFile
String sigFile -
digestalg
String digestalg -
tsa
String tsa -
tsacert
String tsacert -
tsapolicyid
String tsapolicyid -
EXTENSIONS_P
-
-
Constructor Details
-
JartoolSigner
public JartoolSigner()
-
-
Method Details
-
setProperties
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
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
-
sign
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:
Exception- When anything goes wrong
-
collect
- Throws:
Exception
-