config/src/main/java/org/springframework/security/config/annotation/web/configurers/CsrfConfigurer.java
public CsrfConfigurer<H> csrfTokenRepository(
			CsrfTokenRepository csrfTokenRepository) {
		Assert.notNull(csrfTokenRepository, "csrfTokenRepository cannot be null");
		this.csrfTokenRepository = csrfTokenRepository;
		return this;
	}
public CsrfConfigurer<H> csrfTokenRepository(
			CsrfTokenRepository csrfTokenRepository) {
		Assert.notNull(csrfTokenRepository, "csrfTokenRepository cannot be null");
		this.csrfTokenRepository = csrfTokenRepository;
		return this;
	}
Specify the {@link CsrfTokenRepository} to use. The default is an
{@link HttpSessionCsrfTokenRepository} wrapped by {@link LazyCsrfTokenRepository}.

@param csrfTokenRepository the {@link CsrfTokenRepository} to use
@return the {@link CsrfConfigurer} for further customizations