public void setStateGenerator(final ValueGenerator stateGenerator) {
        CommonHelper.assertNotNull("stateGenerator", stateGenerator);
        this.stateGenerator = stateGenerator;
    }
<p>Setter for the field <code>stateGenerator</code>.</p>

@param stateGenerator a {@link ValueGenerator} object
pac4j-oauth/src/main/java/org/pac4j/oauth/config/OAuth20Configuration.java