mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Deprecate loadContext(RequestResponseHolder)
Fix gh-11032
This commit is contained in:
parent
147ab42440
commit
3a9b080bbe
@ -27,7 +27,9 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
*
|
*
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
* @deprecated Use {@link SecurityContextRepository#loadContext(HttpServletRequest)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public final class HttpRequestResponseHolder {
|
public final class HttpRequestResponseHolder {
|
||||||
|
|
||||||
private HttpServletRequest request;
|
private HttpServletRequest request;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package org.springframework.security.web.context;
|
package org.springframework.security.web.context;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.springframework.security.core.context.SecurityContext;
|
import org.springframework.security.core.context.SecurityContext;
|
||||||
@ -39,7 +40,10 @@ import org.springframework.security.web.util.OnCommittedResponseWrapper;
|
|||||||
* @author Marten Algesten
|
* @author Marten Algesten
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
* @deprecated Use {@link SecurityContextRepository#loadContext(HttpServletRequest)}
|
||||||
|
* instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public abstract class SaveContextOnUpdateOrErrorResponseWrapper extends OnCommittedResponseWrapper {
|
public abstract class SaveContextOnUpdateOrErrorResponseWrapper extends OnCommittedResponseWrapper {
|
||||||
|
|
||||||
private boolean contextSaved = false;
|
private boolean contextSaved = false;
|
||||||
|
@ -57,7 +57,9 @@ import org.springframework.web.filter.GenericFilterBean;
|
|||||||
*
|
*
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
* @deprecated Use {@link SecurityContextHolderFilter}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class SecurityContextPersistenceFilter extends GenericFilterBean {
|
public class SecurityContextPersistenceFilter extends GenericFilterBean {
|
||||||
|
|
||||||
static final String FILTER_APPLIED = "__spring_security_scpf_applied";
|
static final String FILTER_APPLIED = "__spring_security_scpf_applied";
|
||||||
|
@ -60,7 +60,9 @@ public interface SecurityContextRepository {
|
|||||||
* the context should be loaded.
|
* the context should be loaded.
|
||||||
* @return The security context which should be used for the current request, never
|
* @return The security context which should be used for the current request, never
|
||||||
* null.
|
* null.
|
||||||
|
* @deprecated Use {@link #loadContext(HttpServletRequest)} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder);
|
SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user