Commit Graph

55 Commits (407c14d0dc4b8faa17909d46bed444cb727baaf8)

Author SHA1 Message Date
Justin Richer 1c34f83297 Fixed JWS algorithm parsing 2012-08-27 15:58:23 -04:00
Justin Richer 21ff134383 JWS coment/format cleanup 2012-08-27 14:45:02 -04:00
Justin Richer 26d5a846e0 Updated validator structure and id token checking. 2012-08-17 16:18:08 -04:00
Mike Derryberry 1efe7a1fc3 updated check of algorithm in signing method" 2012-08-14 10:55:07 -04:00
Amanda Anganes 8d4e046408 All logging is now org.slf4j. We had a mix of org.slf4j and apache commons-logging. Added error logging to all view which throw errors. 2012-08-07 10:04:38 -04:00
Justin Richer 51b8dbe065 Revert "updated jwtHeader typ to use an enum" -- set things back to using a string
This reverts commit 3b2268c622.
2012-08-02 14:16:55 -04:00
Justin Richer 164090e9d5 added jwt string stability to several places, fixed jwe parser 2012-07-31 15:29:33 -04:00
Mike Derryberry 3b2268c622 updated jwtHeader typ to use an enum 2012-07-31 11:29:48 -04:00
Mike Derryberry 95dcb10472 updated encrypter/decrypter to store keys as member variables rather than to pass them in 2012-07-31 11:29:32 -04:00
Mike Derryberry 61c7231d9a updated encrypter and decrypter to use enum class rather than fragile parsing 2012-07-31 11:28:46 -04:00
Mike Derryberry 5f80ebc89a changing encryption/decryption code to use enum classes rather than shady parsing techniques 2012-07-31 11:28:23 -04:00
Justin Richer f9dd9df7cd added skip to test for encryption if not running unlimited strength java 2012-07-30 14:47:02 -04:00
Justin Richer 92e779257d testing key sizes, still failing outside of bouncycastle 2012-07-30 13:40:20 -04:00
Justin Richer 319568d971 refactored JWA algorithm markers to use enum instead of string as stored class 2012-07-23 20:21:31 -04:00
Justin Richer 165f3ea292 fixed some unit tests, broke others 2012-07-23 18:44:47 -04:00
Mike Derryberry 4deaffd686 updated hmac and rsa signer to use afterPropertiesSet(), abstract oidc auth filter now adds multiple signers to map and then picks the one it needs, and key fetcher now gets jwk 2012-07-23 18:31:27 -04:00
Justin Richer 8b848af0fb cleaned up signer initialization calls and algorithm-setting code, cleaned up algorithm names, renamed encrypter/decrypter classes 2012-07-23 18:17:31 -04:00
Mike Derryberry d204ff1e69 removed constructor for RsaDecrypter and RsaEncrypter 2012-07-17 14:07:58 -04:00
Mike Derryberry 4f78c3db80 removed verification of signature in decryption 2012-07-17 13:40:14 -04:00
Mike Derryberry 1dbf2808c1 changed imports 2012-07-17 10:57:36 -04:00
Mike Derryberry e380d85ad7 updated encryption/decryption to dynamically get mode for cipher. also made the keyDataLen come from the kdf parameter rather than enc 2012-07-17 10:57:10 -04:00
Mike Derryberry 5d3d888c3f finished testing. fixed MessageDigest problems in generating cek and cik 2012-07-17 10:56:43 -04:00
Mike Derryberry 13e0a7c4bb tests for encryption/decryption done 2012-07-17 10:56:09 -04:00
Mike Derryberry 88a052019a added testing for encryption and decryption. slight bug where [ ] gets appended to clearText. working on that 2012-07-17 10:55:46 -04:00
Mike Derryberry 5152fa1c69 added tests for encryption and decryption. WIP 2012-07-17 10:55:10 -04:00
Mike Derryberry 26792d2fba updated decryption to generate cik and cek based off of key derivation 2012-07-17 10:54:36 -04:00
Mike Derryberry d86ee2329b updated encryption to generate cek and cik through key derivation. also fixed signers to use afterPropertiesSet() 2012-07-17 10:54:09 -04:00
Mike Derryberry 7e7cd4f480 update to encryption/decryption. added cmk, cek, and cik use 2012-07-17 10:53:36 -04:00
Mike Derryberry bc1ff0d964 updated jwe, jwt, and jwk models to have new parameters that were released in latest JOSE update 2012-07-17 10:53:04 -04:00
Mike Derryberry 70e90bc4c1 updated decryption 2012-07-17 10:52:38 -04:00
Mike Derryberry 025f7f3d66 updated encryption to sign using int value rather than alg 2012-07-17 10:52:16 -04:00
Mike Derryberry 754e8406bb removed web app from this git repository 2012-07-17 10:51:20 -04:00
Mike Derryberry 99a574d303 encryption completed, decryption WIP 2012-07-17 10:50:35 -04:00
Mike Derryberry cee44de3d1 updated encryption class to include AbstractJwtEncrypter 2012-07-17 10:50:06 -04:00
Mike Derryberry caf2a7b494 updated encryption service to encrypt key and claims and then sign the jwe. decryption updated to decrypt encrypted key and ciphertext 2012-07-17 10:49:29 -04:00
Mike Derryberry e252951612 added encrypter/decrypter for claims to get ciphertext 2012-07-17 10:48:07 -04:00
Mike Derryberry 33cc3fa899 Added spring simple web app for testing, encryption and decryption classes for rsa and hmac, still WIP 2012-07-17 10:47:41 -04:00
Justin Richer c24a2206e9 updated jwtheader parser 2012-07-03 16:43:00 -04:00
Justin Richer ac7a53b234 bugfix: call setNonce instead of setType 2012-07-03 16:38:53 -04:00
Justin Richer 1127a7cfbc refactored JWKs, updated signing servier to use them 2012-06-25 17:19:25 -04:00
Justin Richer adb8499bee merged derryberry code, plus tweaks, still WIP 2012-06-25 16:42:41 -04:00
Mike Derryberry b1fc07bcb8 updated -common code to get a validation service from a server configuration 2012-06-21 14:37:30 -04:00
Mike Derryberry b94fbd7439 updated -common and -client code by removing throws exception, changing to rest templates, and updating test cases to use annotations 2012-06-20 09:36:55 -04:00
Justin Richer fe3bbfb3d5 Further cleanups. Still missing:
- All tests extend TestCase, should use annotations instead
- Several elements throw Exception
- Key Fetchers should use RESTTemplates and be in a separate utility set
2012-06-15 17:11:58 -04:00
Justin Richer b86abdd761 merge from pull request, plus cleanup 2012-06-15 15:36:14 -04:00
Mike Derryberry 65dc3daaf8 smart client 2012-06-12 16:09:01 -04:00
Mike Derryberry 3e810cb5dc Merge remote-tracking branch 'mitre/master' 2012-06-07 14:29:13 -04:00
Mike Derryberry fad6caa968 Added testing for signers for Hmac, Rsa, and Plaintext 2012-06-07 14:28:09 -04:00
Justin Richer e44697cef9 updated JWK display to latest, closes #58 2012-06-05 16:07:19 -04:00
Justin Richer 97dffb6414 added copyright to all java files. closes #11 2012-04-27 17:55:58 -04:00