public static void setJsonWebKeyState(final JsonWebKey key, final JsonWebKeyLifecycleStates state) {
            key.setOtherParameter(OidcJsonWebKeystoreRotationService.PARAMETER_STATE, state.getState());
        }
Sets json web key state.

@param key   the key
@param state the state
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/rotation/OidcJsonWebKeystoreRotationService.java