title: How to configure jetty to request client certificate for specified resources?
body: <p>sslConfig:</p>
  
  <pre><code>&lt;New id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory"&gt;
      &lt;Set name="KeyStorePath"&gt;../conf/jetty/etc/keystore&lt;/Set&gt;
      &lt;Set name="KeyStorePassword"&gt;secretpass&lt;/Set&gt;
      &lt;Set name="KeyManagerPassword"&gt;test&lt;/Set&gt;
      &lt;Set name="TrustStorePath"&gt;../conf/jetty/etc/truststore&lt;/Set&gt;
      &lt;Set name="TrustStorePassword"&gt;secretpass&lt;/Set&gt;
      &lt;Set name="EndpointIdentificationAlgorithm"&gt;&lt;/Set&gt;
      &lt;Set name="NeedClientAuth"&gt;true&lt;/Set&gt;
      &lt;Set name="WantClientAuth"&gt;true&lt;/Set&gt;
  &lt;/New&gt;
  </code></pre>
  
  <p>Setting NeedClientAuth to true requires client to provide certificate for all resources. But in my case I want to request certificate only for specified resources.</p>
  
  <p>For example I need to request certificate for /resource1/*
  And use just HTTPS for /resource2/*</p>
  
  <p>How can I achieve this?</p>