* {@inheritDoc}
*/
protected JarSignerRequest createRequest( File archive )
throws MojoExecutionException
{
JarSignerSignRequest request = new JarSignerSignRequest();
request.setAlias( alias );
request.setProviderArg( providerArg );
request.setProviderClass( providerClass );
request.setProviderName( providerName );
request.setSigfile( sigfile );
request.setStoretype( storetype );
request.setTsaLocation( tsa );
request.setTsaAlias( tsacert );
// Special handling for passwords through the Maven Security Dispatcher
try
{
request.setKeypass( securityDispatcher.decrypt( keypass ) );
request.setStorepass( securityDispatcher.decrypt( storepass ) );
}
catch ( SecDispatcherException e )
{
getLog().error( "error using security dispatcher: " + e.getMessage(), e );
throw new MojoExecutionException( "error using security dispatcher: " + e.getMessage(), e );