private JsonWebKeySet getPublicKeys() throws JoseException {
        final PublicJsonWebKey publicJsonWebKey = RsaJsonWebKey.Factory
                .newPublicJwk(defaultOpenIdCredentials.getPublicKeyJson());

        final List<PublicJsonWebKey> publicJsonWebKeys = Collections.singletonList(publicJsonWebKey);

        return new JsonWebKeySet(publicJsonWebKeys);
    }
Copied from https://bitbucket.org/b_c/jose4j/wiki/JWT Examples
<p>
Not really a test, just a handy reference for how to create a token and verify it in jose4j
stroom-security/stroom-security-impl/src/test/java/stroom/security/impl/TestJWTService.java