Commit Graph

357 Commits

Author SHA1 Message Date
Les Hazlewood 1969ca307a
Merge pull request #390 from wengertj/386-fix-jwtbuilder-javadoc
Fix JwtBuilder javadoc - resolves #386
2018-08-16 11:30:35 -04:00
Johannes Wengert 0fd3622703 Fix JwtBuilder javadoc - resolves #386 2018-08-16 09:42:53 +02:00
Les Hazlewood 77f1a69c72 Addressed issue where org.json.JSONString and org.json.JSONWriter are not available on Android. Resolves #388. 2018-08-15 17:49:13 -04:00
Les Hazlewood 33a3107213 added 0.10.4 changelog notes 2018-08-14 12:35:46 -04:00
Les Hazlewood a7ee38053d Merge branch '0.10.x' 2018-08-14 12:31:34 -04:00
Les Hazlewood eca0b0614d [maven-release-plugin] prepare for next development iteration 2018-08-14 11:48:28 -04:00
Les Hazlewood 14a116beba [maven-release-plugin] prepare release 0.10.4 2018-08-14 11:48:21 -04:00
Les Hazlewood 56b3a71733 Ensured JCA Name comparison is not case sensitive per Java Security Standard Algorithm Names documentation. Accompanied with test case for regression.
Resolves #381
2018-08-14 11:42:47 -04:00
Les Hazlewood a4b388cd2e created 0.10.x branch and updated project files to prep for upcoming 0.10.4 release. 2018-08-14 11:16:05 -04:00
Les Hazlewood 31b4386b64 Merge branch '0.10.x' 2018-08-13 20:32:36 -04:00
Les Hazlewood bcfc0655e4 [maven-release-plugin] prepare for next development iteration 2018-08-13 20:28:38 -04:00
Les Hazlewood 2ceae3bc37 [maven-release-plugin] prepare release 0.10.3 2018-08-13 20:28:32 -04:00
Les Hazlewood 85d8920d79 Ensured symmetric logic between the Keys and SignatureAlgorithm helper methods for hmac key lengths.
Updated Android dependencies and ProGuard exclusion definitions
Updating docs to reflect 0.10.3 release
Resolves #381, #382
2018-08-13 20:26:14 -04:00
Les Hazlewood 1839ebf5e8 # This is a combination of 2 commits.
# This is the 1st commit message:

[maven-release-plugin] prepare for next development iteration

# This is the commit message #2:

rebased from master before merge
2018-08-07 13:59:15 -04:00
Les Hazlewood d7071faeae [maven-release-plugin] prepare release 0.10.2 2018-08-07 13:43:48 -04:00
Les Hazlewood f19c34a763 Ensured JJWT's org.json use is compatible with Android's org.json API as defined in https://developer.android.com/reference/org/json/package-summary. Resolves #380. 2018-08-07 13:32:20 -04:00
Les Hazlewood 5e5f29d8b1 [maven-release-plugin] prepare release 0.10.1 2018-08-02 17:30:09 -04:00
Les Hazlewood 1520ae8a21
Merge pull request #373 from jwtk/375-bc-optional
Ensure BouncyCastle is optional
2018-08-02 17:27:42 -04:00
Les Hazlewood 7f662627cc Ensured BouncyCastle was optional. Also ensured EllipticCurve algorithms could be used without BouncyCastle since the JDK supports EC by default. Moved RuntimeEnvironment.enableBouncyCastleIfPossible() call out of SignatureAlgorithm into RsaProvider since BC is only necessary for RSASSA-PSS algorithms (PS256, PS384, PS512) and nothing else in JJWT's codebase.
Resolves #372
2018-08-02 16:59:59 -04:00
Les Hazlewood b58e1b6dc5 [maven-release-plugin] prepare for next development iteration 2018-08-01 18:10:41 -04:00
Les Hazlewood 6b980553cf [maven-release-plugin] prepare release 0.10.0 2018-08-01 18:10:34 -04:00
Les Hazlewood 17af933665 [maven-release-plugin] rollback the release of 0.10.0 2018-08-01 18:02:51 -04:00
Les Hazlewood 9cfd861250 [maven-release-plugin] prepare for next development iteration 2018-08-01 18:00:33 -04:00
Les Hazlewood cd62ed1bbf [maven-release-plugin] prepare release 0.10.0 2018-08-01 18:00:27 -04:00
Les Hazlewood 59d6a7bd27
Merge pull request #371 from jwtk/355-documentation
Documentation revamp
2018-08-01 17:51:27 -04:00
Les Hazlewood 8b3f6cac53 Finally proper documentation! Updated changelog as well. Resolves #355. 2018-08-01 16:41:41 -04:00
Les Hazlewood 4085229152
Merge pull request #370 from jwtk/364-jdk9-module-testing
Re-enable builds on JDK 9+
2018-07-30 15:53:01 -04:00
Les Hazlewood 3237b720bd - Enabled maven profile for JDK >= 9 that will add a surefire <argLine> with '--add-opens java.base/jdk.internal.loader=ALL-UNNAMED' to ensure module reflection can occur during tests.
- Disabled travis openjdk11 and oraclejdk-ea builds - those build environments are not currently stable

Resolves #364
2018-07-30 14:52:11 -04:00
Les Hazlewood f26831cf16
Merge pull request #368 from jwtk/366-builder-signing-key
Added JwtBuilder#signWith(Key) with tests and refactoring.
2018-07-28 00:13:23 -04:00
Les Hazlewood a669cad29b - Added JwtBuilder#signWith(Key) with tests and refactoring. Deprecated additional signWith methods that can lead to confusion.
- Made some tests more deterministic with mocks instead of relying on Random number generator - BigInteger values were non-deterministic because of a random leading sign bit being there (or not) during test runs.

Resolves #366
2018-07-27 23:57:22 -04:00
Les Hazlewood 711d0d5556
Merge pull request #367 from jwtk/334-key-length-assertions
Key strength assertions during signing and verification
2018-07-27 15:27:31 -04:00
Les Hazlewood 9189253668 334: key strength assertions and signature validation. Resolves #334 2018-07-27 15:17:01 -04:00
Les Hazlewood 45f83d0cb1
Merge pull request #363 from jwtk/350-key-factories
Add Key generators to the public API
2018-07-25 13:00:11 -04:00
Les Hazlewood 9d244b9fca Added new io.jsonwebtoken.crypto.Keys utility class for generating SecretKeys and KeyPairs. Resolves #350 2018-07-24 22:55:02 -04:00
Les Hazlewood c9d05361fa
Merge pull request #361 from jwtk/304-spec-date-claims
Claims specification date enhancments
2018-07-23 17:22:41 -04:00
Les Hazlewood d330f2d4cc Updated Claims implementation as well as put/putAll to better handle specification dates. 2018-07-23 17:08:00 -04:00
Les Hazlewood 56f507fb59
Merge pull request #360 from jwtk/285-throws-clause
Base64 update throws clause
2018-07-23 15:55:40 -04:00
Les Hazlewood 3549cf48db 285: added throws clause and updated javadoc 2018-07-23 15:53:54 -04:00
Les Hazlewood fbcc9ab931
Merge pull request #359 from jwtk/285-base64-exceptions
Descriptive exception when decoding illegal Base64(Url) input
2018-07-23 15:50:46 -04:00
Les Hazlewood bbfabb54a7 Implementation with tests. Resolves #285 2018-07-23 15:38:30 -04:00
Les Hazlewood ac6703541e
Merge pull request #357 from jwtk/291-sdf-utc
Fix claim assertion exception message to reflect UTC timestamps
2018-07-20 19:58:58 -04:00
Les Hazlewood 7404fd130b Resolves #291 (regression tests added) 2018-07-20 19:47:47 -04:00
Les Hazlewood 2eeca41a61
Merge pull request #246 from Ledenel/master
Update README.md
2018-07-20 19:38:23 -04:00
Les Hazlewood 54ddbedbec Resolves #275 2018-07-20 17:23:23 -04:00
Les Hazlewood 1914ddd262
Merge pull request #356 from jwtk/353-upgrade-bc
Upgrade BouncyCastle to 1.60
2018-07-20 16:47:16 -04:00
Les Hazlewood f756408c60 353: upgraded bouncycastle to the latest stable 1.60 release. 2018-07-20 15:55:43 -04:00
Les Hazlewood b4e5e03152
Merge pull request #351 from jwtk/348-multi-module-project
Migrate to multi-module project
2018-07-20 12:50:16 -04:00
Les Hazlewood 439c027c2e 348: Reorganize into a multi-module project. Includes test enhancements and code reorganization 2018-07-20 12:18:40 -04:00
Les Hazlewood 29172608a9
Merge pull request #344 from jwtk/issue-335-custom-json
Pluggable JSON serialization
2018-07-11 17:58:57 -04:00
Les Hazlewood 8afca0d0df 335: initial pluggable JSON (de)serialization support with Jackson and org.json as the first implementations, with Jackson being the default. Added tests to retain 100% code coverage. 2018-07-11 16:36:09 -04:00