I need a webview which can connect and auth using x509 certs.

1. One idea which came to mind was that I could override or implement
some interface where I could use my own code for creating a secure
socket. However I cant seem to get started with this approche. I have
read the docs at 
http://developer.android.com/reference/android/webkit/WebViewClient.html
and AFAI can see this would be the class to override. However I'm not
sure which methods I should replace.

2. Another way would be implementing the following steps:
connect, auth and read the data (the body part of the http response)
and load it into a webview
intercept onclick or url loading and manually use httplib (or
whatever) to read the data and finally load it into the webview again


The first idea seems to be the best from a beautiful code
perspective... but I need some pointers before thats possible for me.
The second solution seems like a hack which actually isnt that big a
deal since client certs (most likely) will be supported in futhere
versions of the android browser. However I'm not 100% sure that it
will actually work. Cookies is one thing which needs to be support by
the httplib in question and also shared with the webview in case
someone wants to use js to read cookies.


Best regards,
Seb

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to