code: public File execute( JnlpDependencyConfig config, File file )
              throws JnlpDependencyTaskException
      {
  
          SignConfig sign = config.getSign();
  
          boolean signVerify = sign.isVerify();
  
          File signedJar = new File( file.getParentFile(), file.getName() + ".sign" );
  
          try
          {
              ioUtil.deleteFile( signedJar );
          }
          catch ( MojoExecutionException e )
          {
              throw new JnlpDependencyTaskException( e.getMessage(), e.getCause() );
          }
  
          verboseLog( config, "Sign " + signedJar.getName() );
          try
          {
              signTool.sign( sign, file, signedJar );
          }
          catch ( MojoExecutionException e )
          {
              throw new JnlpDependencyTaskException( e.getMessage(), e.getCause() );
          }
  
          getLogger().debug( "lastModified signedJar:" + signedJar.lastModified() + " not signed Jar:" +
                                     file.lastModified() );
  
          if ( signVerify )
          {
              verboseLog( config, "Verify signature of " + signedJar.getName() );
              try
              {
                  signTool.verify( sign, signedJar, config.isVerbose() );
              }
              catch ( MojoExecutionException e )
              {
                  throw new JnlpDependencyTaskException( e.getMessage(), e.getCause() );
              }
          }
          return signedJar;
      }
docs: {@inheritDoc}