Using the pre-configured client + JWK set I can't even get to the server. Looks like there's some naming problem?
```
2016-02-24 17:25:43 ERROR JwtUtil:817 - JSONObject["alg"] not found.
org.codehaus.jettison.json.JSONException: JSONObject["alg"] not found.
at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:374)
at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:501)
at org.xdi.oxauth.model.util.JwtUtil.getPrivateKey(JwtUtil.java:788)
at gluu.scim2.client.auth.UmaScim2ClientImpl.initUmaRpt(UmaScim2ClientImpl.java:129)
at gluu.scim2.client.auth.UmaScim2ClientImpl.initUmaAuthentication(UmaScim2ClientImpl.java:89)
at gluu.scim2.client.auth.UmaScim2ClientImpl.init(UmaScim2ClientImpl.java:72)
at gluu.scim2.client.BaseScim2ClientImpl.retrievePerson(BaseScim2ClientImpl.java:156)
at gluu.scim2.client.auth.UmaScim2ClientImpl.retrievePerson(UmaScim2ClientImpl.java:236)
at gluu.scim2.client.Scim2Client.retrievePerson(Scim2Client.java:52)
at ScrimTestClient.Client.main(Client.java:54)
```
Here's the key as configured in the default "SCIM Requesting Party Client"
```
{"keys": [ { "keyType": "RSA", "use": "SIGNATURE", "algorithm": "RS256", "keyId": "5a5abdc9-9bc8-4af7-9048-ca0ba35599eb", "expirationTime": null, "curve": null, "privateKey": { "modulus": "AKrQGy5xVQhnzioBRSJaeeTEDm7t0DtX1YwHkYNSVXGu53KdWGXlg_ZBLMUXIXXH-cMJRMG7zhFq4LgVWTMcILfA4WnQ1aT2IaYHrfnsV-hFV464HCExH2zhTT-MZBcFOIXAC3cNG_rBHFf0bBr8PpSwFgfj2oFJDTKDmGManVorVvYJZ1bzy-l_vHKUxB7lCBxdNctDNux1X_4TWCP1YpBYLvDsCRZ4Spp8wLzu55cx0QkzUVNyJPenVDA0tFVDN50E8yG1iKy9z0AjGDa_D4B5PX3ixPkLQvCfSPGfpfRO4f4lKGTFEcxeI5g9KF_uy2bkNMC6z1bjWbqu1LU7T3c", "privateExponent": "E9mbTwpcl1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dGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCq0BsucVUIZ84qAUUiWnnkxA5u7dA7V9WMB5GDUlVxrudynVhl5YP2QSzFFyF1x/nDCUTBu84RauC4FVkzHCC3wOFp0NWk9iGmB6357FfoRVeOuBwhMR9s4U0/jGQXBTiFwAt3DRv6wRxX9Gwa/D6UsBYH49qBSQ0yg5hjGp1aK1b2CWdW88vpf7xylMQe5QgcXTXLQzbsdV/+E1gj9WKQWC7w7AkWeEqafMC87ueXMdEJM1FTciT3p1QwNLRVQzedBPMhtYisvc9AIxg2vw+AeT194sT5C0Lwn0jxn6X0TuH+JShkxRHMXiOYPShf7stm5DTAus9W41m6rtS1O093AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAGD1u3uUeuj/6VtlndaqUa9m7G9NPdC98p5Ka4f+rrPZkuVuviVGFUOf5pOqVFDbVAbruhUZXnjOXi1hwCxm4g/hQrRLdlGBessc9RCxSeu1BUAvYvZO30QQYsM9CHh16WIkfNvSbBeX25qKGJuO/8UjgyLBoCMyevuYyMf701cCta7i/EdIu0SD78LrsTCezrylL4Wpo0LM44TYnr9Z1xax+0l7oyvfSZIRQ9NiZ+pG4h6luTxx7qgX7h2Ycni6tLmTci7gWckkVxMi83fda35nQJu00sj284LpLE3y/7PDR9cdGWf28p9oKzQXPnNVZRWfipaqELE1zBvvqL/YfMk="] }, { "keyType": "RSA", "use": "SIGNATURE", "algorithm": "RS384", "keyId": "d0740c88-eb8f-41a4-a5f1-72e08655b99a", "expirationTime": null, "curve": null, "privateKey": { "modulus": "AIftDG26CEhxfU5h2uGkoIMxMel1lCK4V9eT__cv4oM7ee4gl1YlvUSZhtLI_m2ybEw70s-A6-8ff9ivDLRkriOqeZHplK7H3eik1VPvb1fpihAlOM5JsoioaSaX36wVpLl8EUF-mBdWIsxO5ZDtmH-5RImBys61liSMDhW7ESKxxxen_ReJDqhrnHKcpqHQ70SkgCTjudLby9n8hAmX0qoKp9z1NVkD9Jb-z3eMaTvlzbKgrGD2_2FNSR2s-Jq5IuSZIor_jvrlF1U5mpjqlCeG-C0A91_sC3C6ED8zR1ok3u8hr-WiFxA3TC7oZ9GMszdEUfOIRYbMIy-HblPBxRs", "privateExponent": "Qip0KF2sdoc4NhWQVNKsh_BEmZ5ws84EhJ44tX0LyFIFcpNO19KbJW-On8DTiVaXPSzJ29SoBMjSlQnxJ0bzNc1gTFTl2YbVUNAcQDWHf8XhPSbBVjmtvLQuK2k2qjAG9XudcsJLCuEVI1ssiLX_y_zFjiIuNR1Trwq2OIHNP5OQ-HY7KKDeR8pxWpZti64w_vUoRFt3jhcLGZeJDBLYOefmDuqBo8IhhnNTCmT_Ur4LzckZ04-2C7PFEy6gsQxmjocg7WwlLYDrvgrtSIp14uFBtQgmKdfaxLqxO-UnZXz_Od7j2rpa4C-DK-AdK2b8hKaboAy0PmB8XE8UklWBcQ", "d": null }, "publicKey": { "modulus": "AIftDG26CEhxfU5h2uGkoIMxMel1lCK4V9eT__cv4oM7ee4gl1YlvUSZhtLI_m2ybEw70s-A6-8ff9ivDLRkriOqeZHplK7H3eik1VPvb1fpihAlOM5JsoioaSaX36wVpLl8EUF-mBdWIsxO5ZDtmH-5RImBys61liSMDhW7ESKxxxen_ReJDqhrnHKcpqHQ70SkgCTjudLby9n8hAmX0qoKp9z1NVkD9Jb-z3eMaTvlzbKgrGD2_2FNSR2s-Jq5IuSZIor_jvrlF1U5mpjqlCeG-C0A91_sC3C6ED8zR1ok3u8hr-WiFxA3TC7oZ9GMszdEUfOIRYbMIy-HblPBxRs", "exponent": "AQAB", "x": null, "y": null }, "certificateChain": ["MIIDMTCCAhkCgYEA7L23MWn7WGGLmCaOcLS70Z7q+aONWu1Fixgq1DRbr/dU73coFgWAoJTEzLgV+Et+/oKzrnOUcHYbmCetXVJPm1f5SbhEM8QgpLk+cKKgI6o5vjP5HZhqGTNYXJMmC3boLLIvyYlokWv8azf4gHDIuz88rzhQSJz7XE75XXtQSHAwDQYJKoZIhvcNAQEMBQAwHjEcMBoGA1UEAxMTVGVzdCBDQSBDZXJ0aWZpY2F0ZTAeFw0xNjAyMjIxMTI4NDhaFw0xNzAyMjIxMTI4NDhaMB4xHDAaBgNVBAMTE1Rlc3QgQ0EgQ2VydGlmaWNhdGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCH7QxtughIcX1OYdrhpKCDMTHpdZQiuFfXk//3L+KDO3nuIJdWJb1EmYbSyP5tsmxMO9LPgOvvH3/Yrwy0ZK4jqnmR6ZSux93opNVT729X6YoQJTjOSbKIqGkml9+sFaS5fBFBfpgXViLMTuWQ7Zh/uUSJgcrOtZYkjA4VuxEisccXp/0XiQ6oa5xynKah0O9EpIAk47nS28vZ/IQJl9KqCqfc9TVZA/SW/s93jGk75c2yoKxg9v9hTUkdrPiauSLkmSKK/4765RdVOZqY6pQnhvgtAPdf7AtwuhA/M0daJN7vIa/lohcQN0wu6GfRjLM3RFHziEWGzCMvh25TwcUbAgMBAAEwDQYJKoZIhvcNAQEMBQADggEBABZJfVZDDph6lP+xmf3Sgumnq4J22vLkTMvSeBafgpA5ScfVR9Ham5QnrfMJAs6NlTl2PLige8Zmq0W3gxrxZnYLhlqP7K5OW8gI57P8HV5ISpulBLvgSkKGfrFEVKxKhnCLjriA1/bWz03b6ujPBHufLsCAi4+fah9OhPgHZxigpuL0kL4/78W0kzZTEQ08Q/nLVPv31A6sb/ybfRjlbSSo/7Z2oquqSlMlmXU7lGtBwC/JtkprbkEglBwxZdYJCc65PWWE/yjKmIZ7DRihETTItCYaF7AoPpQ7nB+/LSrJI+TccTjBftp+5704a4BfpBVGKywrQ5EaO11+aqoTOHM="] }, { "keyType": "RSA", "use": "SIGNATURE", "algorithm": "RS512", "keyId": "9487133e-a6d8-48ae-a840-7e7c28e31994", "expirationTime": null, "curve": null, "privateKey": { "modulus": "AMreZ8mqIbPAQrX7qoOftSK7agdNuGgMcxNClChej2Z9YW4mPFuboyCgAohZRytqeOb1vwXbo_A4ZNm6k4hO9S4BYEjw99JWYJye_6BfcC9jsx6Cc6hXuNXy4X__yXC3ULz89NdIDUEkShyNQft7A_cHlUHfZ-KyLjm2EStKYn0SZcVS4N3Kmj9WWXHSkxXqUC_v5JU9ZZ7FMzcUjaim5cDe9mjj73zcA2fbMeQ4YHjeCIXEpW1aE9Tb6gUa2UhQJHvXHoo1FSC8vRxJF4phR5PBjcAHjLruZ1aCrX_Ii_JOy2KYwait4LeRZNqvgllJjIXIFw11ilgtGtUhsLYTBac", "privateExponent": "AJTE3F-q_-QNjd5enADCUdcSkQKiICVNW-Y34OZp0cdbEuPv7jtPuyTlsnXC4soX3mmgtWDaXTKAaJSymhZPsMT4BV_4NgRti5PPla5Jzr8x4dzx1VcSXV2oK23uag7an7630eU91Vp7_k1J2aVN5O53BSG1bz1zZSq1NYoFlowYbg34NyRvUMfoD2Z76ofVHcPeErvachZ-9GEBh9GvjPo0tzh6RH1ocf28b2YlBKOGhWMwbGzsS8Yz6TO1ec6c1bndXVc3YlgX4TY0oPhqtPgg-XQeT0i3Y40scWtyPZAk7AcdfJSgo8JIAzkPlXqX3U4zY9eOMM14U0eqiNrj82E", "d": null }, "publicKey": { "modulus": "AMreZ8mqIbPAQrX7qoOftSK7agdNuGgMcxNClChej2Z9YW4mPFuboyCgAohZRytqeOb1vwXbo_A4ZNm6k4hO9S4BYEjw99JWYJye_6BfcC9jsx6Cc6hXuNXy4X__yXC3ULz89NdIDUEkShyNQft7A_cHlUHfZ-KyLjm2EStKYn0SZcVS4N3Kmj9WWXHSkxXqUC_v5JU9ZZ7FMzcUjaim5cDe9mjj73zcA2fbMeQ4YHjeCIXEpW1aE9Tb6gUa2UhQJHvXHoo1FSC8vRxJF4phR5PBjcAHjLruZ1aCrX_Ii_JOy2KYwait4LeRZNqvgllJjIXIFw11ilgtGtUhsLYTBac", "exponent": "AQAB", "x": null, "y": null }, "certificateChain": ["MIIDMTCCAhkCgYEAmqmdF5eOLZhrEurNOWBCOv++dJ/WJN/nqqiW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"keyId": "04b58564-b004-4fc1-90da-f5226fef7baa", "expirationTime": null, "curve": "P-256", "privateKey": { "modulus": null, "privateExponent": null, "d": "C6wkOzymrNCLC-755mSHSh6CaThYthWwz15SPIs5rsc" }, "publicKey": { "modulus": null, "exponent": null, "x": "AOZty854PAA3FZo6zwfeH6F_t-UBz6swv71CsD4I4VkA", "y": "LsOw-44WhbkxwIjtriLxiaF6JhDwvttWt0UoFFe_o1A" }, "certificateChain": ["MIIBpDCCAUoCgYB4U3i5F55xxck8Qw5aCDi0jzzKDV89EePQRGpiWItw4FsG9B0OhNw9vsbgQs+dO6HiyYUar+9HCVa8VvNopX2AjSY2CI9h656UHsFq/YhcDBt9+EmhcOAzu5tFgBQvou/ZZUeaonWZ86ka4/ap4Ok3D9bjt3y12mdxn85qMJT66zAKBggqhkjOPQQDAjAeMRwwGgYDVQQDExNUZXN0IENBIENlcnRpZmljYXRlMB4XDTE2MDIyMjExMjg0OVoXDTE3MDIyMjExMjg0OVowHjEcMBoGA1UEAxMTVGVzdCBDQSBDZXJ0aWZpY2F0ZTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOZty854PAA3FZo6zwfeH6F/t+UBz6swv71CsD4I4VkALsOw+44WhbkxwIjtriLxiaF6JhDwvttWt0UoFFe/o1AwCgYIKoZIzj0EAwIDSAAwRQIgXhZEw6KuEkHfcDxh463xnOV5wlWmgeg6Ve9mQ4WgD0wCIQCfyoTMR0f//NhZaxjhmtxuFpW9M05GsylAnVXsz5tUVQ=="] }, { "keyType": "EC", "use": "SIGNATURE", "algorithm": "ES384", "keyId": "eec12337-4deb-437d-809f-9fd55181b8e8", "expirationTime": null, "curve": "P-384", "privateKey": { "modulus": null, "privateExponent": null, "d": "AVNzv4BI1WtkR-BoKR_IP-UsMy6iw-8glI0jym7-IOspuiREwH0wSB_3v0X0HnAa" }, "publicKey": { "modulus": null, "exponent": null, "x": "ANSrH3ngsf4cIeCc-6nug6ms5_CTIP0pXmiSyH6l9y3Hd2OcZyfU5qpos-UkUbg2xQ", "y": "Qt2f9U9_QxcUPYA0VPLkC8kdLfe8o2Dzuiv12yWCe19TwDGCRNlJKCp92ovLOrHk" }, "certificateChain": ["MIIB4TCCAWcCgYApeQ7GDX88aZU2Kfy88QmMLOAZ89xavs17x3DMRvkOpbY//saSrdnvPmOJgFG7b1xIRbpfVDpXcAvHtD1CP3vwH9rpvBWIzhb2dd8xL+DsW5X8hsoqSULJ+cq3WpGQnujHS5SBHihjoTynlUI4JW9jdylymcMNcuCWQDgVfttNUjAKBggqhkjOPQQDAjAeMRwwGgYDVQQDExNUZXN0IENBIENlcnRpZmljYXRlMB4XDTE2MDIyMjExMjg0OVoXDTE3MDIyMjExMjg0OVowHjEcMBoGA1UEAxMTVGVzdCBDQSBDZXJ0aWZpY2F0ZTB2MBAGByqGSM49AgEGBSuBBAAiA2IABNSrH3ngsf4cIeCc+6nug6ms5/CTIP0pXmiSyH6l9y3Hd2OcZyfU5qpos+UkUbg2xULdn/VPf0MXFD2ANFTy5AvJHS33vKNg87or9dslgntfU8AxgkTZSSgqfdqLyzqx5DAKBggqhkjOPQQDAgNoADBlAjAkV3ggo4GkZuhB9YR0lmKdxTJkn+Qg7PPG5j564/3+AiSvGyoA4X2yIDaAkrMJZaQCMQD+f1HbpLputIaXYVVZQtgH3+kSy/ROc6WDmH8u3iqFcLtQvvlrUPI5+qKTh4Y6GCE="] }, { "keyType": "EC", "use": "SIGNATURE", "algorithm": "ES512", "keyId": "c197cd26-d9b0-44c4-9b68-124678c2a32c", "expirationTime": null, "curve": "P-521", "privateKey": { "modulus": null, "privateExponent": null, "d": "AIfB6zEFluartK07IzUceAowReIhMQJ9x8tyI1DW9HUToNqB1UhJlHvAWYo9Fwu2LgyDdpBINwqRZfY1LRU_n9Ek" }, "publicKey": { "modulus": null, "exponent": null, "x": "AVUFxwt7QZxLRi7_mP2Xwr1AlVHS-T92wp-vMXNPhfQ6txUGz6SAxFkRLrZ4dZpxr1K13lwHMsnko5n8Ne07H_RL",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