Guarav,

You will need to extend the SslContextFactory and override the
getTrustManagers method to return your TrustManager

Alternately, if your trust manager is installed in such a way that it has a
name known so that a call to TrustManagerFactory.getInstance(String) will
return your manager, then you can simply configure our SslContextFactory
with setTrustManagerFactoryAlgorithm(String). I think you need to provide a
SecurityProvider for this to work.

cheers



On 22 June 2017 at 08:33, Gaurav Bhatnagar <gauravb...@gmail.com> wrote:

> Hi,
>    I would like to setup a custom Trust manager other than the default
> Trust Manager that comes with Java Platform.
>    I am designing my Trust Manager by implementing
> javax.net.ssl.X509TrustManager interface. Now I want to plug this Trust
> Manager in embedded jetty so that this new Trust Manager is used during SSL
> hand shake in jetty.
>    Any ideas or leads on how to do this would be quite useful for me.
>
> Regards,
> Gaurav
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 
Greg Wilkins <gr...@webtide.com> CTO http://webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to