static JsonWebKey generateJsonWebKey(final OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates state,
                                         final OidcProperties oidcProperties,
                                         final OidcJsonWebKeyUsage usage) {
        val key = OidcJsonWebKeystoreGeneratorService.generateJsonWebKey(oidcProperties, usage);
        OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.setJsonWebKeyState(key, state);
        return key;
    }
Generate key with state json web key.

@param state          the state
@param oidcProperties the oidc properties
@param usage          the usage
@return the json web key
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/generator/OidcJsonWebKeystoreGeneratorService.java