Deprecate Saml2 AuthnRequest Classes

Issue gh-10355
This commit is contained in:
Josh Cummings 2022-01-24 14:54:51 -07:00
parent d538423f98
commit 620081ea9a
4 changed files with 20 additions and 4 deletions

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 * @since 5.3
* @see Saml2AuthenticationRequestFactory#createPostAuthenticationRequest(Saml2AuthenticationRequestContext) * @see Saml2AuthenticationRequestFactory#createPostAuthenticationRequest(Saml2AuthenticationRequestContext)
* @see Saml2AuthenticationRequestFactory#createRedirectAuthenticationRequest(Saml2AuthenticationRequestContext) * @see Saml2AuthenticationRequestFactory#createRedirectAuthenticationRequest(Saml2AuthenticationRequestContext)
* @deprecated Use
* {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
* instead
*/ */
@Deprecated
public class Saml2AuthenticationRequestContext { public class Saml2AuthenticationRequestContext {
private final RelyingPartyRegistration relyingPartyRegistration; private final RelyingPartyRegistration relyingPartyRegistration;

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 Shazin Sadakath
* @author Josh Cummings * @author Josh Cummings
* @since 5.4 * @since 5.4
* @deprecated Use
* {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
* instead
*/ */
@Deprecated
public final class DefaultSaml2AuthenticationRequestContextResolver public final class DefaultSaml2AuthenticationRequestContextResolver
implements Saml2AuthenticationRequestContextResolver { implements Saml2AuthenticationRequestContextResolver {

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 Shazin Sadakath
* @author Josh Cummings * @author Josh Cummings
* @since 5.4 * @since 5.4
* @deprecated Use
* {@link org.springframework.security.saml2.provider.service.web.authentication.Saml2AuthenticationRequestResolver}
* instead
*/ */
@Deprecated
public interface Saml2AuthenticationRequestContextResolver { public interface Saml2AuthenticationRequestContextResolver {
/** /**

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 * @author Josh Cummings
* @since 5.5 * @since 5.5
* @deprecated Use
* {@link org.springframework.security.saml2.provider.service.web.authentication.OpenSaml4AuthenticationRequestResolver}
* instead
*/ */
@Deprecated
public final class OpenSaml4AuthenticationRequestFactory implements Saml2AuthenticationRequestFactory { public final class OpenSaml4AuthenticationRequestFactory implements Saml2AuthenticationRequestFactory {
static { static {