public boolean isJsonWebKey(final String key) {
        try {
            val results = parseJsonWebKey(key);
            return !results.isEmpty();
        } catch (final Exception e) {
            LOGGER.trace(e.getMessage());
        }
        return false;
    }
Is json web key boolean.

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