public static Key generateJsonWebKey(final String secret) {
        val keys = new HashMap<String, Object>(2);
        keys.put("kty", "oct");
        keys.put(EncodingUtils.JSON_WEB_KEY, secret);
        return generateJsonWebKey(keys);
    }
Prepare json web token key.

@param secret the secret
@return the key
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java