|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2002-2022 the original author or authors.
|
|
|
+ * Copyright 2002-2023 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -421,7 +421,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link HttpsRedirectSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #redirectToHttps(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HttpsRedirectSpec redirectToHttps() {
|
|
|
this.httpsRedirectSpec = new HttpsRedirectSpec();
|
|
|
return this.httpsRedirectSpec;
|
|
@@ -502,7 +504,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link CsrfSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #csrf(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CsrfSpec csrf() {
|
|
|
if (this.csrf == null) {
|
|
|
this.csrf = new CsrfSpec();
|
|
@@ -566,7 +570,9 @@ public class ServerHttpSecurity {
|
|
|
* used instead. If neither has been configured, the Cors configuration will do
|
|
|
* nothing.
|
|
|
* @return the {@link CorsSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #cors(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CorsSpec cors() {
|
|
|
if (this.cors == null) {
|
|
|
this.cors = new CorsSpec();
|
|
@@ -608,7 +614,9 @@ public class ServerHttpSecurity {
|
|
|
* </pre>
|
|
|
* @return the {@link AnonymousSpec} to customize
|
|
|
* @since 5.2.0
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #anonymous(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public AnonymousSpec anonymous() {
|
|
|
if (this.anonymous == null) {
|
|
|
this.anonymous = new AnonymousSpec();
|
|
@@ -662,7 +670,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link HttpBasicSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #httpBasic(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HttpBasicSpec httpBasic() {
|
|
|
if (this.httpBasic == null) {
|
|
|
this.httpBasic = new HttpBasicSpec();
|
|
@@ -714,7 +724,9 @@ public class ServerHttpSecurity {
|
|
|
* </pre>
|
|
|
* @return the {@link PasswordManagementSpec} to customize
|
|
|
* @since 5.6
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #passwordManagement(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public PasswordManagementSpec passwordManagement() {
|
|
|
if (this.passwordManagement == null) {
|
|
|
this.passwordManagement = new PasswordManagementSpec();
|
|
@@ -771,7 +783,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link FormLoginSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #formLogin(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public FormLoginSpec formLogin() {
|
|
|
if (this.formLogin == null) {
|
|
|
this.formLogin = new FormLoginSpec();
|
|
@@ -832,7 +846,9 @@ public class ServerHttpSecurity {
|
|
|
* {@link ReactivePreAuthenticatedAuthenticationManager} will be used.
|
|
|
* @return the {@link X509Spec} to customize
|
|
|
* @since 5.2
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #x509(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public X509Spec x509() {
|
|
|
if (this.x509 == null) {
|
|
|
this.x509 = new X509Spec();
|
|
@@ -889,7 +905,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link OAuth2LoginSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2Login(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OAuth2LoginSpec oauth2Login() {
|
|
|
if (this.oauth2Login == null) {
|
|
|
this.oauth2Login = new OAuth2LoginSpec();
|
|
@@ -941,7 +959,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link OAuth2ClientSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2Client(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OAuth2ClientSpec oauth2Client() {
|
|
|
if (this.client == null) {
|
|
|
this.client = new OAuth2ClientSpec();
|
|
@@ -992,7 +1012,10 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link OAuth2ResourceServerSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2ResourceServer(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OAuth2ResourceServerSpec oauth2ResourceServer() {
|
|
|
if (this.resourceServer == null) {
|
|
|
this.resourceServer = new OAuth2ResourceServerSpec();
|
|
@@ -1064,7 +1087,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link HeaderSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #headers(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec headers() {
|
|
|
if (this.headers == null) {
|
|
|
this.headers = new HeaderSpec();
|
|
@@ -1138,7 +1163,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link ExceptionHandlingSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #exceptionHandling(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ExceptionHandlingSpec exceptionHandling() {
|
|
|
if (this.exceptionHandling == null) {
|
|
|
this.exceptionHandling = new ExceptionHandlingSpec();
|
|
@@ -1204,7 +1231,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link AuthorizeExchangeSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #authorizeExchange(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public AuthorizeExchangeSpec authorizeExchange() {
|
|
|
if (this.authorizeExchange == null) {
|
|
|
this.authorizeExchange = new AuthorizeExchangeSpec();
|
|
@@ -1273,7 +1302,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link LogoutSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #logout(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public LogoutSpec logout() {
|
|
|
if (this.logout == null) {
|
|
|
this.logout = new LogoutSpec();
|
|
@@ -1330,7 +1361,9 @@ public class ServerHttpSecurity {
|
|
|
* }
|
|
|
* </pre>
|
|
|
* @return the {@link RequestCacheSpec} to customize
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #requestCache(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public RequestCacheSpec requestCache() {
|
|
|
return this.requestCache;
|
|
|
}
|
|
@@ -1603,7 +1636,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #authorizeExchange(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -1801,7 +1837,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated use {@link #redirectToHttps(Customizer)}
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -1879,7 +1917,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #csrf(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -1945,7 +1985,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #exceptionHandling(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -1987,7 +2030,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #requestCache(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -2083,7 +2128,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #httpBasic(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -2156,7 +2203,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}.
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #passwordManagement(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -2314,7 +2364,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #formLogin(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -2438,7 +2490,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #headers(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -2455,7 +2509,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures cache control headers
|
|
|
* @return the {@link CacheSpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #cache(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CacheSpec cache() {
|
|
|
return new CacheSpec();
|
|
|
}
|
|
@@ -2474,7 +2530,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures content type response headers
|
|
|
* @return the {@link ContentTypeOptionsSpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #contentTypeOptions(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ContentTypeOptionsSpec contentTypeOptions() {
|
|
|
return new ContentTypeOptionsSpec();
|
|
|
}
|
|
@@ -2493,7 +2552,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures frame options response headers
|
|
|
* @return the {@link FrameOptionsSpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #frameOptions(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public FrameOptionsSpec frameOptions() {
|
|
|
return new FrameOptionsSpec();
|
|
|
}
|
|
@@ -2525,7 +2586,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures the Strict Transport Security response headers
|
|
|
* @return the {@link HstsSpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #hsts(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HstsSpec hsts() {
|
|
|
return new HstsSpec();
|
|
|
}
|
|
@@ -2550,7 +2613,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures x-xss-protection response header.
|
|
|
* @return the {@link XssProtectionSpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #xssProtection(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public XssProtectionSpec xssProtection() {
|
|
|
return new XssProtectionSpec();
|
|
|
}
|
|
@@ -2570,7 +2635,10 @@ public class ServerHttpSecurity {
|
|
|
* Configures {@code Content-Security-Policy} response header.
|
|
|
* @param policyDirectives the policy directive(s)
|
|
|
* @return the {@link ContentSecurityPolicySpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #contentSecurityPolicy(Customizer)}
|
|
|
+ * instead.
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ContentSecurityPolicySpec contentSecurityPolicy(String policyDirectives) {
|
|
|
return new ContentSecurityPolicySpec(policyDirectives);
|
|
|
}
|
|
@@ -2590,7 +2658,8 @@ public class ServerHttpSecurity {
|
|
|
* Configures {@code Feature-Policy} response header.
|
|
|
* @param policyDirectives the policy
|
|
|
* @return the {@link FeaturePolicySpec} to configure
|
|
|
- * @deprecated Use {@link #permissionsPolicy(Customizer)} instead.
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #permissionsPolicy(Customizer)}
|
|
|
+ * instead.
|
|
|
*/
|
|
|
@Deprecated
|
|
|
public FeaturePolicySpec featurePolicy(String policyDirectives) {
|
|
@@ -2600,7 +2669,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures {@code Permissions-Policy} response header.
|
|
|
* @return the {@link PermissionsPolicySpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #permissionsPolicy(Customizer)}
|
|
|
+ * instead.
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public PermissionsPolicySpec permissionsPolicy() {
|
|
|
return new PermissionsPolicySpec();
|
|
|
}
|
|
@@ -2620,7 +2692,10 @@ public class ServerHttpSecurity {
|
|
|
* Configures {@code Referrer-Policy} response header.
|
|
|
* @param referrerPolicy the policy to use
|
|
|
* @return the {@link ReferrerPolicySpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #referrerPolicy(Customizer)}
|
|
|
+ * instead.
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ReferrerPolicySpec referrerPolicy(ReferrerPolicy referrerPolicy) {
|
|
|
return new ReferrerPolicySpec(referrerPolicy);
|
|
|
}
|
|
@@ -2628,7 +2703,10 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Configures {@code Referrer-Policy} response header.
|
|
|
* @return the {@link ReferrerPolicySpec} to configure
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #referrerPolicy(Customizer)}
|
|
|
+ * instead.
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ReferrerPolicySpec referrerPolicy() {
|
|
|
return new ReferrerPolicySpec();
|
|
|
}
|
|
@@ -2650,8 +2728,11 @@ public class ServerHttpSecurity {
|
|
|
* Cross-Origin-Opener-Policy</a> header.
|
|
|
* @return the {@link CrossOriginOpenerPolicySpec} to configure
|
|
|
* @since 5.7
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginOpenerPolicy(Customizer)} instead.
|
|
|
* @see CrossOriginOpenerPolicyServerHttpHeadersWriter
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CrossOriginOpenerPolicySpec crossOriginOpenerPolicy() {
|
|
|
return new CrossOriginOpenerPolicySpec();
|
|
|
}
|
|
@@ -2676,8 +2757,11 @@ public class ServerHttpSecurity {
|
|
|
* Cross-Origin-Embedder-Policy</a> header.
|
|
|
* @return the {@link CrossOriginEmbedderPolicySpec} to configure
|
|
|
* @since 5.7
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginEmbedderPolicy(Customizer)} instead.
|
|
|
* @see CrossOriginEmbedderPolicyServerHttpHeadersWriter
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CrossOriginEmbedderPolicySpec crossOriginEmbedderPolicy() {
|
|
|
return new CrossOriginEmbedderPolicySpec();
|
|
|
}
|
|
@@ -2702,8 +2786,11 @@ public class ServerHttpSecurity {
|
|
|
* Cross-Origin-Resource-Policy</a> header.
|
|
|
* @return the {@link CrossOriginResourcePolicySpec} to configure
|
|
|
* @since 5.7
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginResourcePolicy(Customizer)} instead.
|
|
|
* @see CrossOriginResourcePolicyServerHttpHeadersWriter
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public CrossOriginResourcePolicySpec crossOriginResourcePolicy() {
|
|
|
return new CrossOriginResourcePolicySpec();
|
|
|
}
|
|
@@ -2789,7 +2876,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #frameOptions(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
private HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -2857,7 +2947,9 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #hsts(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -2946,7 +3038,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #contentSecurityPolicy(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -2973,7 +3068,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #featurePolicy(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3005,7 +3103,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #permissionsPolicy(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3042,7 +3143,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #referrerPolicy(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3073,7 +3177,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginOpenerPolicy(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3104,7 +3211,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginEmbedderPolicy(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3135,7 +3245,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}.
|
|
|
* @return the {@link HeaderSpec} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use
|
|
|
+ * {@link #crossOriginResourcePolicy(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public HeaderSpec and() {
|
|
|
return HeaderSpec.this;
|
|
|
}
|
|
@@ -3211,7 +3324,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #logout(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -3322,7 +3437,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #cors(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -3378,6 +3495,10 @@ public class ServerHttpSecurity {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #x509(Customizer)} instead
|
|
|
+ */
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -3630,7 +3751,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2Login(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -3965,7 +4088,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2Client(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -4113,7 +4238,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Enables JWT Resource Server support.
|
|
|
* @return the {@link JwtSpec} for additional configuration
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #jwt(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public JwtSpec jwt() {
|
|
|
if (this.jwt == null) {
|
|
|
this.jwt = new JwtSpec();
|
|
@@ -4138,7 +4265,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Enables Opaque Token Resource Server support.
|
|
|
* @return the {@link OpaqueTokenSpec} for additional configuration
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #opaqueToken(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OpaqueTokenSpec opaqueToken() {
|
|
|
if (this.opaqueToken == null) {
|
|
|
this.opaqueToken = new OpaqueTokenSpec();
|
|
@@ -4230,6 +4359,11 @@ public class ServerHttpSecurity {
|
|
|
return new ServerAuthenticationEntryPointFailureHandler(this.entryPoint);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #oauth2ResourceServer(Customizer)}
|
|
|
+ * instead
|
|
|
+ */
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|
|
@@ -4303,6 +4437,10 @@ public class ServerHttpSecurity {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #jwt(Customizer)} instead
|
|
|
+ */
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OAuth2ResourceServerSpec and() {
|
|
|
return OAuth2ResourceServerSpec.this;
|
|
|
}
|
|
@@ -4413,7 +4551,10 @@ public class ServerHttpSecurity {
|
|
|
* Allows method chaining to continue configuring the
|
|
|
* {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #opaqueToken(Customizer)}
|
|
|
+ * instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public OAuth2ResourceServerSpec and() {
|
|
|
return OAuth2ResourceServerSpec.this;
|
|
|
}
|
|
@@ -4539,7 +4680,9 @@ public class ServerHttpSecurity {
|
|
|
/**
|
|
|
* Allows method chaining to continue configuring the {@link ServerHttpSecurity}
|
|
|
* @return the {@link ServerHttpSecurity} to continue configuring
|
|
|
+ * @deprecated For removal in 7.0. Use {@link #anonymous(Customizer)} instead
|
|
|
*/
|
|
|
+ @Deprecated(since = "6.1", forRemoval = true)
|
|
|
public ServerHttpSecurity and() {
|
|
|
return ServerHttpSecurity.this;
|
|
|
}
|