mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Fix javadocs on WebFlux CSRF classes
Signed-off-by: mmck328 <20348295+mmck328@users.noreply.github.com>
This commit is contained in:
parent
3ebcbd4375
commit
5ded04da6c
@ -19,13 +19,12 @@ package org.springframework.security.web.server.csrf;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.security.access.AccessDeniedException;
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
import org.springframework.security.web.csrf.CsrfToken;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when an invalid or missing {@link CsrfToken} is found in the HttpServletRequest
|
* Thrown when an invalid or missing {@link CsrfToken} is found in the ServerWebExchange
|
||||||
*
|
*
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
* @since 3.2
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class CsrfException extends AccessDeniedException {
|
public class CsrfException extends AccessDeniedException {
|
||||||
|
|
||||||
|
@ -19,17 +19,16 @@ package org.springframework.security.web.server.csrf;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
|
||||||
import jakarta.servlet.http.HttpSession;
|
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
import reactor.core.scheduler.Schedulers;
|
import reactor.core.scheduler.Schedulers;
|
||||||
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
import org.springframework.web.server.ServerWebExchange;
|
import org.springframework.web.server.ServerWebExchange;
|
||||||
|
import org.springframework.web.server.WebSession;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link ServerCsrfTokenRepository} that stores the {@link CsrfToken} in the
|
* A {@link ServerCsrfTokenRepository} that stores the {@link CsrfToken} in the
|
||||||
* {@link HttpSession}.
|
* {@link WebSession}.
|
||||||
*
|
*
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
@ -78,7 +77,7 @@ public class WebSessionServerCsrfTokenRepository implements ServerCsrfTokenRepos
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the {@link HttpServletRequest} parameter name that the {@link CsrfToken} is
|
* Sets the {@link ServerWebExchange} parameter name that the {@link CsrfToken} is
|
||||||
* expected to appear on
|
* expected to appear on
|
||||||
* @param parameterName the new parameter name to use
|
* @param parameterName the new parameter name to use
|
||||||
*/
|
*/
|
||||||
@ -98,7 +97,7 @@ public class WebSessionServerCsrfTokenRepository implements ServerCsrfTokenRepos
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the {@link HttpSession} attribute name that the {@link CsrfToken} is stored in
|
* Sets the {@link WebSession} attribute name that the {@link CsrfToken} is stored in
|
||||||
* @param sessionAttributeName the new attribute name to use
|
* @param sessionAttributeName the new attribute name to use
|
||||||
*/
|
*/
|
||||||
public void setSessionAttributeName(String sessionAttributeName) {
|
public void setSessionAttributeName(String sessionAttributeName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user