1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-10 11:35:11 -05:00
k-9/res/values
Joe Steele 21cc3d9176 Remove ClientCertificateRequiredException
With this commit, KeyChainKeyManager no longer throws the exception and
AccountSetupCheckSettings no longer catches it.

It was being thrown when the server requested a client certificate but no
client certificate alias had been configured for the server.

The code was making the incorrect assumption that the server would only
request a client certificate when such a certificate was *required*.
However, servers can be configured to accept multiple forms of
authentication, including both password authentication and client
certificate authentication.  So a server may request a certificate without
requiring it.  If a user has not configured a client certificate, then
that should not be treated as an error because the configuration may be
valid and the server may accept it.

The only indication that a certificate is *required* is when a
SSLProtocolException is thrown, caused by a SSLHandshakeException
resulting from a fatal handshake alert message received from the server.
Unfortunately, such a message is fairly generic and only "indicates that
the sender was unable to negotiate an acceptable set of security
parameters given the options available."  So there is no definitive way to
know that a client certificate is required.

Also, KeyChainKeyManager.getCertificateChain() and getPrivateKey() no
longer throw IllegalStateException().  These methods are permitted to
return null, and such a response is appropriate if the user has deleted
client certificates from the device.  Again, this may or may not cause the
server to abort the connection, depending on whether the server *requires*
a client certificate.
2014-08-11 11:07:44 -04:00
..
arrays.xml Remove unused resources 2014-04-07 19:52:37 +02:00
attrs.xml Change message body font size with slider, using new setTextZoom() WebView API, from 40% to 250% 2014-01-31 23:09:25 +02:00
colors.xml New OpenPGP Provider API 2014-03-02 16:51:47 +01:00
constants.xml Extracted some strings to constants.xml 2012-04-23 15:05:29 +00:00
dimensions.xml Remove unused resources 2014-04-07 19:52:37 +02:00
ids.xml Remove SslHelper.isClientCertificateSupportAvailable() 2014-08-11 11:07:42 -04:00
strings.xml Remove ClientCertificateRequiredException 2014-08-11 11:07:44 -04:00
styles.xml Fix SpUsage lint warnings 2014-04-07 20:09:22 +02:00
themes.xml Remove ActionBarSherlock 2014-06-21 17:09:45 +02:00