Class SecuredAuthorizationManager
- java.lang.Object
-
- org.springframework.security.authorization.method.SecuredAuthorizationManager
-
- All Implemented Interfaces:
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
public final class SecuredAuthorizationManager extends java.lang.Object implements AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
AnAuthorizationManagerwhich can determine if anAuthenticationmay invoke theMethodInvocationby evaluating if theAuthenticationcontains a specified authority from the Spring Security'sSecuredannotation.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description SecuredAuthorizationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationDecisioncheck(java.util.function.Supplier<Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi)Determine if anAuthenticationhas access to a method by evaluating theSecuredannotation thatMethodInvocationspecifies.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.security.authorization.AuthorizationManager
verify
-
-
-
-
Method Detail
-
check
public AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi)
Determine if anAuthenticationhas access to a method by evaluating theSecuredannotation thatMethodInvocationspecifies.- Specified by:
checkin interfaceAuthorizationManager<org.aopalliance.intercept.MethodInvocation>- Parameters:
authentication- theSupplierof theAuthenticationto checkmi- theMethodInvocationto check- Returns:
- an
AuthorizationDecisionor null if theSecuredannotation is not present
-
-