http issue 178: Move PrivateKeys from OAuth project into SecurityUtils
https://code.google.com/p/google-http-java-client/issues/detail?id=178
http issue 176: Ability to restrict the trusted CAs
https://code.google.com/p/google-http-java-client/issues/detail?id=176
I also added the ability to load certificates from PEM file. Please take a look ...
11 years, 3 months ago
(2013-01-07 21:13:28 UTC)
#3
I also added the ability to load certificates from PEM file. Please take a look
again.
https://codereview.appspot.com/7034050/diff/9/google-http-client/src/main/jav...
File
google-http-client/src/main/java/com/google/api/client/http/apache/SSLSocketFactoryImpl.java
(right):
https://codereview.appspot.com/7034050/diff/9/google-http-client/src/main/jav...
google-http-client/src/main/java/com/google/api/client/http/apache/SSLSocketFactoryImpl.java:35:
class SSLSocketFactoryImpl extends SSLSocketFactory {
On 2013/01/04 15:08:08, ngmiceli wrote:
> Why the name change? Doesn't this still accept all certs? If so, the previous
> name was perfectly descriptive of what the class does and the danger of using
it
> (should) be perfectly clear even without reading the javadoc. If it doesn't
> anymore, then the above documentation should be updated.
I don't know what I was thinking. The whole SSLSocketFactory extension is
entirely unnecessary because SSLSocketFactory already has the functionality we
need. Class removed entirely.
https://codereview.appspot.com/7034050/diff/9/google-http-client/src/test/jav...
File
google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java
(right):
https://codereview.appspot.com/7034050/diff/9/google-http-client/src/test/jav...
google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java:76:
assertTrue(Arrays.equals(ENCODED, actualEncoded));
On 2013/01/04 15:08:08, ngmiceli wrote:
> Use jUnit's assertArrayEquals(byte[], byte[]).
> Similarly below
Done.
Issue 7034050: http issue 178: Move PrivateKeys from OAuth project into SecurityUtils
(Closed)
Created 11 years, 3 months ago by yanivi
Modified 11 years, 3 months ago
Reviewers: ngmiceli
Base URL: https://code.google.com/p/google-http-java-client/
Comments: 5