config/src/main/java/org/springframework/security/config/annotation/web/configurers/RememberMeConfigurer.java
private AbstractRememberMeServices createRememberMeServices(H http, String key)
			throws Exception {
		return this.tokenRepository == null
				? createTokenBasedRememberMeServices(http, key)
				: createPersistentRememberMeServices(http, key);
	}
private AbstractRememberMeServices createRememberMeServices(H http, String key)
			throws Exception {
		return this.tokenRepository == null
				? createTokenBasedRememberMeServices(http, key)
				: createPersistentRememberMeServices(http, key);
	}
Creates the {@link RememberMeServices} to use when none is provided. The result is
either {@link PersistentTokenRepository} (if a {@link PersistentTokenRepository} is
specified, else {@link TokenBasedRememberMeServices}.

@param http the {@link HttpSecurity} to lookup shared objects
@param key the {@link #key(String)}
@return the {@link RememberMeServices} to use
@throws Exception