Class JartoolSigner

java.lang.Object
aQute.bnd.signing.JartoolSigner
All Implemented Interfaces:
Plugin, RegistryPlugin, SignerPlugin

public class JartoolSigner extends Object implements Plugin, SignerPlugin, RegistryPlugin
Sign the jar file. -sign : [ ';' 'password:=' ] [ ';' 'keystore:=' ] [ ';' 'sign-password:=' ] ( ',' ... )*
  • Field Details

  • Constructor Details

    • JartoolSigner

      public JartoolSigner()
  • Method Details

    • setProperties

      public void setProperties(Map<String,String> map)
      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 interface Plugin
      Parameters:
      map - attributes and directives for this plugin's clause
    • setReporter

      public void setReporter(Reporter processor)
      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 interface Plugin
    • setRegistry

      public void setRegistry(Registry registry)
      Specified by:
      setRegistry in interface RegistryPlugin
    • sign

      public void sign(Builder builder, String alias) throws Exception
      Description copied from interface: SignerPlugin
      Sign the current jar. The alias is the given certificate keystore.
      Specified by:
      sign in interface SignerPlugin
      Parameters:
      builder - The current builder that contains the jar to sign
      alias - The keystore certificate alias
      Throws:
      Exception - When anything goes wrong
    • collect

      StringBuilder collect(InputStream in) throws Exception
      Throws:
      Exception