Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10435)

Issue 7034050: http issue 178: Move PrivateKeys from OAuth project into SecurityUtils (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by yanivi
Modified:
11 years, 3 months ago
Reviewers:
ngmiceli
CC:
rmistry
Base URL:
https://code.google.com/p/google-http-java-client/
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : add getRsaKeyFactory() and add KeyFactory parameter to loadPkcs8PrivateKeyFromPem #

Patch Set 3 : generatePkcs8PrivateKey #

Patch Set 4 : getSha1WithRsaSignatureAlgorithm #

Patch Set 5 : http issue 176: Ability to restrict the trusted CAs #

Total comments: 4

Patch Set 6 : ability to load certs from pem file directly #

Patch Set 7 : add SslUtils.getTlsSslContext #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -66 lines) Patch
M google-http-client/.classpath View 1 chunk +1 line, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java View 1 2 3 4 5 6 2 chunks +7 lines, -7 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java View 1 2 3 4 5 6 5 chunks +70 lines, -2 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/apache/TrustAllSSLSocketFactory.java View 1 2 3 4 5 1 chunk +0 lines, -56 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpTransport.java View 1 2 3 4 5 6 2 chunks +65 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/SecurityUtils.java View 1 2 3 4 5 1 chunk +281 lines, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/util/SslUtils.java View 1 2 3 4 5 6 3 chunks +80 lines, -1 line 0 comments Download
A google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java View 1 2 3 4 5 1 chunk +103 lines, -0 lines 1 comment Download
A google-http-client/src/test/resources/com/google/api/client/util/secret.p12 View Binary file 0 comments Download
A google-http-client/src/test/resources/com/google/api/client/util/secret.pem View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 4
yanivi
11 years, 3 months ago (2013-01-03 16:49:48 UTC) #1
ngmiceli
https://codereview.appspot.com/7034050/diff/9/google-http-client/src/main/java/com/google/api/client/http/apache/SSLSocketFactoryImpl.java 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/java/com/google/api/client/http/apache/SSLSocketFactoryImpl.java#newcode35 google-http-client/src/main/java/com/google/api/client/http/apache/SSLSocketFactoryImpl.java:35: class SSLSocketFactoryImpl extends SSLSocketFactory { Why the name change? ...
11 years, 3 months ago (2013-01-04 15:08:07 UTC) #2
yanivi
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
ngmiceli
11 years, 3 months ago (2013-01-08 22:03:10 UTC) #4
LGTM

One optional thought below

https://codereview.appspot.com/7034050/diff/29001/google-http-client/src/test...
File
google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java
(right):

https://codereview.appspot.com/7034050/diff/29001/google-http-client/src/test...
google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java:18:
import org.junit.Assert;
[Optional] I prefer reading 
import static org.junit.Assert.assertArrayEquals;
which removes the need for the preceding Assert before assertArrayEquals. Just
my opinion
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b