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

Issue 7330045: http: add PemReader (Closed)

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

Description

http: add PemReader, update to latest JWT & JWS specs MockHttpTransport: change buildRequest to public for ease of mocking JsonWebToken: update to http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06 JsonWebSignature: add verifySignature SecurityTestUtils: add private/public key pairs SecurityUtils: add verify & remove PEM reading methods

Patch Set 1 #

Patch Set 2 : minor #

Total comments: 10

Patch Set 3 : fixed #

Total comments: 2

Patch Set 4 : update JsonWebToken specification #

Patch Set 5 : minor #

Patch Set 6 : minor #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -371 lines) Patch
M clirr-ignored-differences.xml View 1 2 1 chunk +54 lines, -62 lines 0 comments Download
M findbugs-exclude.xml View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebSignature.java View 1 3 chunks +26 lines, -1 line 0 comments Download
M google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java View 1 2 3 4 5 9 chunks +87 lines, -77 lines 2 comments Download
M google-http-client/src/main/java/com/google/api/client/json/webtoken/package-info.java View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/testing/http/MockHttpTransport.java View 1 chunk +9 lines, -1 line 0 comments Download
M google-http-client/src/main/java/com/google/api/client/testing/util/SecurityTestUtils.java View 2 chunks +66 lines, -36 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/PemReader.java View 1 chunk +178 lines, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/util/SecurityUtils.java View 5 chunks +18 lines, -101 lines 0 comments Download
R google-http-client/src/test/java/com/google/api/client/http/json/webtoken/JsonWebTokenTest.java View 1 2 3 4 1 chunk +0 lines, -52 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/json/webtoken/JsonWebSignatureTest.java View 1 2 3 4 2 chunks +4 lines, -8 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/util/PemReaderTest.java View 1 1 chunk +70 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/util/SecurityUtilsTest.java View 3 chunks +51 lines, -20 lines 0 comments Download

Messages

Total messages: 7
yanivi
11 years, 2 months ago (2013-02-14 18:40:22 UTC) #1
peleyal
https://codereview.appspot.com/7330045/diff/1011/clirr-ignored-differences.xml File clirr-ignored-differences.xml (right): https://codereview.appspot.com/7330045/diff/1011/clirr-ignored-differences.xml#newcode18 clirr-ignored-differences.xml:18: </difference> remove </difference> here. error in building! https://codereview.appspot.com/7330045/diff/1011/clirr-ignored-differences.xml#newcode68 clirr-ignored-differences.xml:68: ...
11 years, 2 months ago (2013-02-15 15:37:08 UTC) #2
yanivi
also added toString to JsonWebToken https://codereview.appspot.com/7330045/diff/1011/clirr-ignored-differences.xml File clirr-ignored-differences.xml (right): https://codereview.appspot.com/7330045/diff/1011/clirr-ignored-differences.xml#newcode18 clirr-ignored-differences.xml:18: </difference> On 2013/02/15 15:37:08, ...
11 years, 2 months ago (2013-02-15 16:32:26 UTC) #3
peleyal
LGTM https://codereview.appspot.com/7330045/diff/12002/findbugs-exclude.xml File findbugs-exclude.xml (right): https://codereview.appspot.com/7330045/diff/12002/findbugs-exclude.xml#newcode67 findbugs-exclude.xml:67: <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/> I think that I had a ...
11 years, 2 months ago (2013-02-15 17:32:29 UTC) #4
yanivi
Updated to the latest specification for JsonWebToken https://codereview.appspot.com/7330045/diff/12002/findbugs-exclude.xml File findbugs-exclude.xml (right): https://codereview.appspot.com/7330045/diff/12002/findbugs-exclude.xml#newcode67 findbugs-exclude.xml:67: <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/> ...
11 years, 2 months ago (2013-02-15 17:43:10 UTC) #5
peleyal
LGTM https://codereview.appspot.com/7330045/diff/32002/google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java File google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java (right): https://codereview.appspot.com/7330045/diff/32002/google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java#newcode178 google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java:178: * none. I think it will be nice ...
11 years, 2 months ago (2013-02-19 14:23:14 UTC) #6
yanivi
11 years, 2 months ago (2013-02-19 14:52:03 UTC) #7
https://codereview.appspot.com/7330045/diff/32002/google-http-client/src/main...
File
google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java
(right):

https://codereview.appspot.com/7330045/diff/32002/google-http-client/src/main...
google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java:178:
* none.
On 2013/02/19 14:23:14, peleyal wrote:
> I think it will be nice to mention that it was named "prn" before draft 06. 
> It is not that important because that class exists from 1.14,
> up to you

In this case I don't think it is necessary to document how the fields were
renamed, and I even think that saying that may actually be more confusing
because they are technically different JSON keys.
Sign in to reply to this message.

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