Example usage for org.springframework.security.web.csrf CsrfTokenRepository interface-usage

List of usage examples for org.springframework.security.web.csrf CsrfTokenRepository interface-usage

Introduction

In this page you can find the example usage for org.springframework.security.web.csrf CsrfTokenRepository interface-usage.

Usage

From source file au.gov.dto.dibp.appointments.security.csrf.CookieBasedCsrfTokenRepository.java

/**
 * Cross-site request forgery (CSRF or CSRF) protection using double submit cookies:
 * https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet#Double_Submit_Cookies
 * <p>
 * Issues to be aware of when using double submit cookies for CSRF protection: http://security.stackexchange.com/a/61039
 * <p>

From source file au.gov.dto.springframework.security.web.csrf.CookieCsrfTokenRepository.java

/**
 * Cross-site request forgery (CSRF or CSRF) protection using double submit cookies:
 * https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet#Double_Submit_Cookies
 * <p>
 * Issues to be aware of when using double submit cookies for CSRF protection: http://security.stackexchange.com/a/61039
 * <p>

From source file com.foilen.smalltools.spring.security.CookiesGeneratedCsrfTokenRepository.java

/**
 * To generate a CSRF token based on some cookie values. The goal is to be able to generate the same CSRF token on different machines that runs the same application without having to share the
 * generated token (e.g. session propagation or in the database).
 *
 * <br>
 * <br>

From source file com.erudika.para.security.CachedCsrfTokenRepository.java

/**
 * A {@link CsrfTokenRepository} that stores the {@link CsrfToken} in {@link Cache}.
 * @author Alex Bogdanovski [alex@erudika.com]
 */
public class CachedCsrfTokenRepository implements CsrfTokenRepository {

From source file org.appverse.web.framework.backend.test.util.frontfacade.mvc.tests.predefined.TestCsrfTokenRepository.java

/**
 * This class implements a CsrfTokenRepository that can be used only for tests.
 * It returns a fixed csrf token value so you do not need to disable Csrf in your tests.
 * This way you will be testing your services with Csrf enabled but you will know a fixed 
 * token value you can pass in your tests (DEFAULT_TEST_CSRF_TOKEN_VALUE)
 */