title: Use TSP source in DSS demo WebApp with authentication certificate
body: <p>I try to change mock timestamp service in <code>DSS Demo Webapp</code>. The demonstration uses a dummy timestamp source by default. I found it is defined in dss.properties file.</p>
  
  <pre><code># TSA
  tsp-source = classpath:config/tsp-config.xml
  </code></pre>
  
  <p>I checked <a href="https://github.com/esig/dss-demonstrations/blob/master/dss-demo-webapp/src/main/resources/config/tsp-config.xml" rel="nofollow noreferrer">tsp-config.xml</a>, but it contains just authentication certificate details, not the URL of service, which should be replaced.
  I modified xml file as follows:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd"&gt;
  
      &lt;bean id="passwordProtection" class="java.security.KeyStore.PasswordProtection"&gt;
          &lt;constructor-arg name="password" value="ks-password" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="tsa-token" class="eu.europa.esig.dss.token.KeyStoreSignatureTokenConnection"&gt;
          &lt;constructor-arg name="ksFile" type="java.io.File" value="classpath:myAuthCert.p12" /&gt;
          &lt;constructor-arg name="ksType" value="PKCS12" /&gt;
          &lt;constructor-arg name="ksPassword" ref="myAuthCertPass" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="tspSource" class="eu.europa.esig.dss.x509.tsp.MockTSPSource"&gt;
          &lt;property name="dataLoader" ref="timestampDataLoader" /&gt;
          &lt;property name="tspServer" value="myTSPSourceURL" /&gt;
          &lt;property name="token" ref="tsa-token" /&gt;
          &lt;property name="alias" value="self-signed-tsa" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="timestampDataLoader" class="eu.europa.esig.dss.client.http.commons.TimestampDataLoader"&gt;
          &lt;property name="proxyConfig" ref="proxyConfig" /&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>I found some info about <code>OnlineTSPSource</code> class too, but cannot find it in source and not sure, how does authentication happen with this.</p>