@Override
	public Map<String, JWK> getAllPublicKeys() {
		Map<String, JWK> pubKeys = new HashMap<>();

		// pull out all public keys
		for (String keyId : keys.keySet()) {
			JWK key = keys.get(keyId);
			JWK pub = key.toPublicJWK();
			if (pub != null) {
				pubKeys.put(keyId, pub);
			}
		}

		return pubKeys;
	}
@Test
	public void getAllPubKeys() throws ParseException {

		Map<String,JWK> keys2check = service_2.getAllPublicKeys();
		assertEquals(
				JSONObjectUtils.getString(RSAjwk.toPublicJWK().toJSONObject(), "e"),
				JSONObjectUtils.getString(keys2check.get(RSAkid).toJSONObject(), "e")
				);
		assertEquals(
				JSONObjectUtils.getString(RSAjwk_2.toPublicJWK().toJSONObject(), "e"),
				JSONObjectUtils.getString(keys2check.get(RSAkid_2).toJSONObject(), "e")
				);

		assertTrue(service_3.getAllPublicKeys().isEmpty());
	}