Examples of JarSignerSignRequest


Examples of org.apache.maven.shared.jarsigner.JarSignerSignRequest

     * {@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 );
View Full Code Here

Examples of org.apache.maven.shared.jarsigner.JarSignerSignRequest

     * {@inheritDoc}
     */
    protected JarSignerRequest createRequest( File archive )
        throws MojoExecutionException
    {
        JarSignerSignRequest request = new JarSignerSignRequest();
        request.setSigfile( sigfile );
        request.setTsaLocation( tsa );
        request.setTsaAlias( tsacert );

        // Special handling for passwords through the Maven Security Dispatcher
        request.setKeypass( decrypt( keypass ) );
        return request;
    }
View Full Code Here

Examples of org.apache.maven.shared.jarsigner.JarSignerSignRequest

  }

  public JarSignerSignRequest signRequest(final File workingDirectory, final File archive)
      throws MojoExecutionException {

    final JarSignerSignRequest request = new JarSignerSignRequest();
    request.setWorkingDirectory(workingDirectory);
    request.setArchive(archive);

    request.setAlias(this.alias);
    request.setKeypass(this.keypass);
    request.setStoretype(this.storetype);
    request.setKeystore(this.keystore);
    request.setStorepass(this.storepass);
    request.setArguments(this.arguments);
    setBeanProperties(request);
    return request;
  }
View Full Code Here

Examples of org.apache.maven.shared.jarsigner.JarSignerSignRequest

     * {@inheritDoc}
     */
    protected JarSignerRequest createRequest( File archive )
        throws MojoExecutionException
    {
        JarSignerSignRequest request = new JarSignerSignRequest();
        request.setSigfile( sigfile );
        request.setTsaLocation( tsa );
        request.setTsaAlias( tsacert );

        // Special handling for passwords through the Maven Security Dispatcher
        request.setKeypass( decrypt( keypass ) );
        return request;
    }
View Full Code Here

Examples of org.apache.maven.shared.jarsigner.JarSignerSignRequest

  }

  public JarSignerSignRequest signRequest(final File workingDirectory, final File archive)
      throws MojoExecutionException {

    final JarSignerSignRequest request = new JarSignerSignRequest();
    request.setWorkingDirectory(workingDirectory);
    request.setArchive(archive);

    request.setAlias(this.alias);
    request.setKeypass(this.keypass);
    request.setStoretype(this.storetype);
    request.setKeystore(this.keystore);
    request.setStorepass(this.storepass);
    request.setTsaAlias(this.tsaAlias);
    request.setTsaLocation(this.tsaLocation);
    request.setArguments(this.arguments);
    setBeanProperties(request);
    return request;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.