Deprecate AccessDecisionManager

Closes gh-11302
This commit is contained in:
Josh Cummings 2025-03-19 17:34:35 -06:00
parent bb438578cb
commit 85b48f8392
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
2 changed files with 6 additions and 6 deletions

View File

@ -24,9 +24,9 @@ import org.springframework.security.core.AuthenticationException;
* Thrown if an authentication request is rejected because the credentials are not * Thrown if an authentication request is rejected because the credentials are not
* sufficiently trusted. * sufficiently trusted.
* <p> * <p>
* {@link org.springframework.security.access.AccessDecisionVoter}s will typically throw * {@link org.springframework.security.authorization.AuthorizationManager}s will typically
* this exception if they are dissatisfied with the level of the authentication, such as * throw this exception if they are dissatisfied with the level of the authentication,
* if performed using a remember-me mechanism or anonymously. The * such as if performed using a remember-me mechanism or anonymously. The
* {@code ExceptionTranslationFilter} will then typically cause the * {@code ExceptionTranslationFilter} will then typically cause the
* {@code AuthenticationEntryPoint} to be called, allowing the principal to authenticate * {@code AuthenticationEntryPoint} to be called, allowing the principal to authenticate
* with a stronger level of authentication. * with a stronger level of authentication.

View File

@ -18,14 +18,14 @@ package org.springframework.security.core;
import java.io.Serializable; import java.io.Serializable;
import org.springframework.security.access.AccessDecisionManager; import org.springframework.security.authorization.AuthorizationManager;
/** /**
* Represents an authority granted to an {@link Authentication} object. * Represents an authority granted to an {@link Authentication} object.
* *
* <p> * <p>
* A <code>GrantedAuthority</code> must either represent itself as a <code>String</code> * A <code>GrantedAuthority</code> must either represent itself as a <code>String</code>
* or be specifically supported by an {@link AccessDecisionManager}. * or be specifically supported by an {@link AuthorizationManager}.
* *
* @author Ben Alex * @author Ben Alex
*/ */
@ -34,7 +34,7 @@ public interface GrantedAuthority extends Serializable {
/** /**
* If the <code>GrantedAuthority</code> can be represented as a <code>String</code> * If the <code>GrantedAuthority</code> can be represented as a <code>String</code>
* and that <code>String</code> is sufficient in precision to be relied upon for an * and that <code>String</code> is sufficient in precision to be relied upon for an
* access control decision by an {@link AccessDecisionManager} (or delegate), this * access control decision by an {@link AuthorizationManager} (or delegate), this
* method should return such a <code>String</code>. * method should return such a <code>String</code>.
* <p> * <p>
* If the <code>GrantedAuthority</code> cannot be expressed with sufficient precision * If the <code>GrantedAuthority</code> cannot be expressed with sufficient precision