E
earthwormgaz
Hi,
I notice that with the URLConnection class there's a HostVerifier you
can set.
Is there anything like this for the "raw" SSL sockets you get from
SSLSocketFactory?
I can see that its possible to set up your own context and with it,
trust manager and key manager. Is there anywhere in that sort of set
up that you can use an equivalent class?
Or is it more manual than that? Do you need to do something like this
code does, and add explicit hostname checks yourself?
http://www.java2s.com/Code/JavaAPI/javax.net.ssl/SSLSocketFactorygetDefault.htm
Many thanks for any help.
I notice that with the URLConnection class there's a HostVerifier you
can set.
Is there anything like this for the "raw" SSL sockets you get from
SSLSocketFactory?
I can see that its possible to set up your own context and with it,
trust manager and key manager. Is there anywhere in that sort of set
up that you can use an equivalent class?
Or is it more manual than that? Do you need to do something like this
code does, and add explicit hostname checks yourself?
http://www.java2s.com/Code/JavaAPI/javax.net.ssl/SSLSocketFactorygetDefault.htm
Many thanks for any help.