public boolean isPrevious() {
            return getState() == PREVIOUS.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