瀏覽代碼

Deprecate Saml2 AuthnRequest Classes

Issue gh-10355
Josh Cummings 3 年之前
父節點
當前提交
df3593f2dd

+ 5 - 1
saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/authentication/Saml2AuthenticationRequestContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 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.
@@ -28,7 +28,11 @@ import org.springframework.util.Assert;
  * @since 5.3
  * @see Saml2AuthenticationRequestFactory#createPostAuthenticationRequest(Saml2AuthenticationRequestContext)
  * @see Saml2AuthenticationRequestFactory#createRedirectAuthenticationRequest(Saml2AuthenticationRequestContext)
+ * @deprecated Use
+ * {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
+ * instead
  */
+@Deprecated
 public class Saml2AuthenticationRequestContext {
 
 	private final RelyingPartyRegistration relyingPartyRegistration;

+ 5 - 1
saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/DefaultSaml2AuthenticationRequestContextResolver.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 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.
@@ -35,7 +35,11 @@ import org.springframework.util.Assert;
  * @author Shazin Sadakath
  * @author Josh Cummings
  * @since 5.4
+ * @deprecated Use
+ * {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
+ * instead
  */
+@Deprecated
 public final class DefaultSaml2AuthenticationRequestContextResolver
 		implements Saml2AuthenticationRequestContextResolver {
 

+ 5 - 1
saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/Saml2AuthenticationRequestContextResolver.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 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.
@@ -28,7 +28,11 @@ import org.springframework.security.saml2.provider.service.authentication.Saml2A
  * @author Shazin Sadakath
  * @author Josh Cummings
  * @since 5.4
+ * @deprecated Use
+ * {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
+ * instead
  */
+@Deprecated
 public interface Saml2AuthenticationRequestContextResolver {
 
 	/**

+ 5 - 1
saml2/saml2-service-provider/src/opensaml4Main/java/org/springframework/security/saml2/provider/service/authentication/OpenSaml4AuthenticationRequestFactory.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2021 the original author or authors.
+ * Copyright 2002-2022 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.
@@ -47,7 +47,11 @@ import org.springframework.util.StringUtils;
  *
  * @author Josh Cummings
  * @since 5.5
+ * @deprecated Use
+ * {@link org.springframework.security.saml2.provider.service.web.authentication.OpenSaml4AuthenticationRequestResolver}
+ * instead
  */
+@Deprecated
 public final class OpenSaml4AuthenticationRequestFactory implements Saml2AuthenticationRequestFactory {
 
 	static {