Commit 7548c14
Fix verification in HTTP library.
Clients get a list of public keys to verify the signed token, the client
library will try all the keys one by one until it find a match. All
these keys used to have the same size, 1024 bit.
Recently we've made all the newly generated key with 2048 bit, so it's
possible that a client get a list of two keys with the first key 1024
bit RSA and the second key 2048 bit RSA.
If the blob was signed by the 1024 bit key, and the client tried the
2048 bit key first, an exception will be throw, and vice versa.
The correct behavior is to ignore this exception and continue to try the
next key.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=957907301 parent 8d2d6a8 commit 7548c14
File tree
1 file changed
+6
-1
lines changed- google-http-client/src/main/java/com/google/api/client/util
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| |||
0 commit comments