Commit Graph

57 Commits

Author SHA1 Message Date
Les Hazlewood 4b59e4bf71 Merge pull request #49 from dogeared/issue-42_assert_claims_new
#42 assert claims match required values
2015-09-23 14:48:42 -07:00
Micah Silverman a22a76ad79 Update to javadocs to make more clear. 2015-09-23 17:40:50 -04:00
Micah Silverman 681a3fc0ba Added coverage test for JwtMap. 2015-09-23 17:20:02 -04:00
Micah Silverman 6401727b2a Refactored generic get with required type to handle the official claim types that are dates. Updated javadocs to reflect 'require' language. 2015-09-23 17:03:07 -04:00
Micah Silverman 5d320d22a5 Handled generic require for Date. Added ability to specify required type on get method of claim 2015-09-23 16:17:44 -04:00
Micah Silverman b4015be11e Added in test that does NOT work for custom claim with Date type. 2015-09-23 04:36:57 -04:00
Micah Silverman 2e452a42b1 Added requireExpiration and requireNotBefore 2015-09-23 04:35:14 -04:00
Micah Silverman ddda2f92d3 Renamed all the expect methods to require. 2015-09-23 03:35:41 -04:00
Micah Silverman 72acd649c7 Updated custom Exception javadocs. 2015-09-23 03:25:29 -04:00
Micah Silverman 5dd95b6755 Refactored validateExpectedClaims 2015-09-23 03:18:10 -04:00
Micah Silverman 62ccd16748 Call underlying delegate methods for expected claims. 2015-09-23 01:31:17 -04:00
Micah Silverman 5ecaacde5a Don't allow empty or null claimName or null value for claim expectations. 2015-09-23 01:12:54 -04:00
Micah Silverman f2e620e36b Added expectId convenience method. 2015-09-12 04:05:51 -04:00
Micah Silverman f3c8f10f32 Added expectSubject convenience method. 2015-09-12 04:05:01 -04:00
Micah Silverman fd04a357cb Added expectAudience convenience method. 2015-09-12 04:04:18 -04:00
Micah Silverman 056dc819e2 Added expectIssuer convenience method. 2015-09-12 04:03:19 -04:00
Micah Silverman 0fab5504cd Added expectIssuedAt convenience method. 2015-09-12 03:58:30 -04:00
Micah Silverman 8f49666a40 Enforce arbitrary claim expectations when parsing 2015-09-12 01:09:44 -04:00
Les Hazlewood 16b970d28e Fixes #35. Also enhanced some test code coverage. 2015-09-09 21:14:59 -07:00
Micah Silverman bdb7597f0a Got rid of semicolons in JwtParserTest to make it consistent throughout. 2015-09-09 23:22:17 -04:00
Micah Silverman 59993cf614 Fixed broken testParseClaimsJwsWithPlaintextJws test. 2015-09-09 23:15:56 -04:00
Les Hazlewood 53f588f6e1 Merge pull request #40 from josebarrueta/Issue-39
Issue 39 - Add generic body type to the DefaultJws implementation.
2015-08-26 17:18:18 -07:00
josebarrueta 5c66435825 Issue-34 getting rid of slf4j. 2015-08-26 17:07:41 -07:00
josebarrueta 73d4e788ef Issue 39 - Add generic body type to the DefaultJws implementation. 2015-08-26 16:59:55 -07:00
Les Hazlewood 4d2080b369 #31: fixed base64 url padding bug 2015-06-26 11:34:33 -07:00
Les Hazlewood cafbc29a76 Readme and JavaDoc updates for the upcoming 0.5 release 2015-05-12 18:49:43 -07:00
Les Hazlewood 9f51760472 #18: enhanced code coverage. Added cobertura for code enforcement and reporting. 2015-05-11 13:21:22 -07:00
Les Hazlewood 66b30e2e10 #18: extracted Android-specific logic out of the Base64Codec to its own class. Created a factory that can return either depending on environment. Ensured all code other than the lang package is at 100% test coverage. 2015-05-08 20:22:22 -07:00
Les Hazlewood c18e4eed05 Merge branch 'master' into android 2015-05-07 23:43:02 -07:00
Les Hazlewood 4904753ca5 #27: removed empty method 2015-05-07 23:30:41 -07:00
Les Hazlewood d644d8f9ee #27: finished EC implementations. Also added test cases to get to 100% code coverage on all code except the lang package. 2015-05-07 23:29:40 -07:00
Les Hazlewood 8d86973b4b #27: initial implementation of Elliptic Curve signatures with tests. Still have a bit more code coverage to add before I'm happy. 2015-05-06 22:41:53 -07:00
Les Hazlewood 01996aa15b #18: fixed Android detection algorithm from class check to system property check. This is to ensure that, during tests, the stub android .jar isn't used since it is in the classpath. 2015-04-29 10:06:08 -07:00
Les Hazlewood 115b6f4dca #18: updated logic to remove warnings from dalvik jvm. 2015-04-29 09:15:52 -07:00
Les Hazlewood 042bac29d7 Merge branch 'master' into android 2015-04-29 09:13:34 -07:00
Les Hazlewood c29c6a2fe8 Implemented issue #25 2015-04-28 19:39:59 -07:00
Les Hazlewood 0d99197a0c Merge branch 'master' into android 2015-04-27 17:29:49 -07:00
Les Hazlewood dcf4d75148 This issue fixes and closes #23 2015-04-27 17:09:10 -07:00
Les Hazlewood e983155326 #18: added initial implementation that *should* work in Android environments. This still needs to be tested in a real Android project. 2015-04-03 19:06:42 -07:00
Les Hazlewood 060666a32e #20: added some test cases to assert that the already existing behavior in JJWT is not susceptible to the discussed attack vectors. 2015-04-03 18:22:04 -07:00
Les Hazlewood 6631b0b8c4 Minor doc updates. Added a test case. 2015-03-14 18:37:47 -07:00
josebarrueta 5699a69256 Issue #10 Switching Claims validation after the JWT signature was validated. 2014-11-21 21:21:05 -08:00
Les Hazlewood ec643b4556 updated SigningKeyResolver concept to handle standard java.security.Key instances, and updated the SigningKeyResolverAdapter to include bytes convenience methods. 2014-11-19 19:00:54 -08:00
josebarrueta 44965c7b9f Issue #8 Added ability to resolve signing keys with String payload. Added SigningKeyResolverAdapter. 2014-11-18 22:42:03 -08:00
josebarrueta e1be49020c Issue #8 Add unit test to the pull request. 2014-11-17 16:45:41 -08:00
josebarrueta 3eb4f01c3f Issue #8 Add ability to resolve signing key based on Jws embedded values before its signature is verified 2014-11-17 13:56:48 -08:00
Les Hazlewood 5540d5ded0 resolved Issue #7 2014-10-28 17:46:30 -07:00
Les Hazlewood 35a42826ea Issue #6: Fixed tests to not reference static (stale) expiration dates 2014-10-28 17:40:37 -07:00
Les Hazlewood adbcf46de3 Issue #6: ensured that a (new) ExpiredJwtException is thrown when parsing an expired Claims JWT or JWS. 2014-10-28 16:41:15 -07:00
Les Hazlewood 962e228428 Filling out test cases 2014-09-26 21:55:30 -07:00