File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed
core/src/main/java/org/springframework/security/access
web/src/main/java/org/springframework/security/web Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import org .springframework .aop .framework .AopInfrastructureBean ;
22
22
import org .springframework .security .access .intercept .AbstractSecurityInterceptor ;
23
+ import org .springframework .security .authorization .AuthorizationManager ;
24
+ import org .springframework .security .core .annotation .SecurityAnnotationScanner ;
23
25
24
26
/**
25
27
* Implemented by classes that store and can identify the {@link ConfigAttribute}s that
26
28
* applies to a given secure object invocation.
27
29
*
28
30
* @author Ben Alex
31
+ * @deprecated In modern Spring Security APIs, each API manages its own configuration
32
+ * context. As such there is no direct replacement for this interface. In the case of
33
+ * method security, please see {@link SecurityAnnotationScanner} and
34
+ * {@link AuthorizationManager}. In the case of channel security, please see
35
+ * {@code HttpsRedirectFilter}. In the case of web security, please see
36
+ * {@link AuthorizationManager}.
29
37
*/
38
+ @ Deprecated
30
39
public interface SecurityMetadataSource extends AopInfrastructureBean {
31
40
32
41
/**
Original file line number Diff line number Diff line change 31
31
import org .springframework .expression .ParseException ;
32
32
import org .springframework .security .access .ConfigAttribute ;
33
33
import org .springframework .security .access .expression .SecurityExpressionHandler ;
34
+ import org .springframework .security .authorization .AuthorizationManager ;
35
+ import org .springframework .security .core .annotation .SecurityAnnotationScanner ;
34
36
import org .springframework .security .web .FilterInvocation ;
35
37
import org .springframework .security .web .access .intercept .DefaultFilterInvocationSecurityMetadataSource ;
36
38
import org .springframework .security .web .util .matcher .AntPathRequestMatcher ;
43
45
* @author Luke Taylor
44
46
* @author Eddú Meléndez
45
47
* @since 3.0
48
+ * @deprecated In modern Spring Security APIs, each API manages its own configuration
49
+ * context. As such there is no direct replacement for this interface. In the case of
50
+ * method security, please see {@link SecurityAnnotationScanner} and
51
+ * {@link AuthorizationManager}. In the case of channel security, please see
52
+ * {@code HttpsRedirectFilter}. In the case of web security, please see
53
+ * {@link AuthorizationManager}.
46
54
*/
55
+ @ Deprecated
47
56
public final class ExpressionBasedFilterInvocationSecurityMetadataSource
48
57
extends DefaultFilterInvocationSecurityMetadataSource {
49
58
Original file line number Diff line number Diff line change 28
28
29
29
import org .springframework .core .log .LogMessage ;
30
30
import org .springframework .security .access .ConfigAttribute ;
31
+ import org .springframework .security .authorization .AuthorizationManager ;
32
+ import org .springframework .security .core .annotation .SecurityAnnotationScanner ;
31
33
import org .springframework .security .web .FilterInvocation ;
32
34
import org .springframework .security .web .util .matcher .RequestMatcher ;
33
35
50
52
*
51
53
* @author Ben Alex
52
54
* @author Luke Taylor
55
+ * @deprecated In modern Spring Security APIs, each API manages its own configuration
56
+ * context. As such there is no direct replacement for this interface. In the case of
57
+ * method security, please see {@link SecurityAnnotationScanner} and
58
+ * {@link AuthorizationManager}. In the case of channel security, please see
59
+ * {@code HttpsRedirectFilter}. In the case of web security, please see
60
+ * {@link AuthorizationManager}.
53
61
*/
62
+ @ Deprecated
54
63
public class DefaultFilterInvocationSecurityMetadataSource implements FilterInvocationSecurityMetadataSource {
55
64
56
65
protected final Log logger = LogFactory .getLog (getClass ());
Original file line number Diff line number Diff line change 17
17
package org .springframework .security .web .access .intercept ;
18
18
19
19
import org .springframework .security .access .SecurityMetadataSource ;
20
+ import org .springframework .security .authorization .AuthorizationManager ;
21
+ import org .springframework .security .core .annotation .SecurityAnnotationScanner ;
20
22
import org .springframework .security .web .FilterInvocation ;
21
23
22
24
/**
23
25
* Marker interface for <code>SecurityMetadataSource</code> implementations that are
24
26
* designed to perform lookups keyed on {@link FilterInvocation}s.
25
27
*
26
28
* @author Ben Alex
29
+ * @deprecated In modern Spring Security APIs, each API manages its own configuration
30
+ * context. As such there is no direct replacement for this interface. In the case of
31
+ * method security, please see {@link SecurityAnnotationScanner} and
32
+ * {@link AuthorizationManager}. In the case of channel security, please see
33
+ * {@code HttpsRedirectFilter}. In the case of web security, please see
34
+ * {@link AuthorizationManager}.
27
35
*/
36
+ @ Deprecated
28
37
public interface FilterInvocationSecurityMetadataSource extends SecurityMetadataSource {
29
38
30
39
}
Original file line number Diff line number Diff line change @@ -127,7 +127,12 @@ void setServletPath(RequestMatcher servletPath) {
127
127
}
128
128
129
129
private RequestPath getRequestPath (HttpServletRequest request ) {
130
- return ServletRequestPathUtils .getParsedRequestPath (request );
130
+ if (ServletRequestPathUtils .hasParsedRequestPath (request )) {
131
+ return ServletRequestPathUtils .getParsedRequestPath (request );
132
+ }
133
+ else {
134
+ return ServletRequestPathUtils .parseAndCache (request );
135
+ }
131
136
}
132
137
133
138
/**
You can’t perform that action at this time.
0 commit comments