Class AuthenticatedAuthorizationManager<T>
java.lang.Object
org.springframework.security.authorization.AuthenticatedAuthorizationManager<T>
- Type Parameters:
T- the type of object authorization is being performed against. This does not.
- All Implemented Interfaces:
AuthorizationManager<T>
public final class AuthenticatedAuthorizationManager<T>
extends Object
implements AuthorizationManager<T>
An
AuthorizationManager that determines if the current user is authenticated.- Since:
- 5.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AuthenticatedAuthorizationManager<T>Creates an instance ofAuthenticatedAuthorizationManager.check(Supplier<Authentication> authentication, T object) Determines if the current user is authorized by evaluating if theAuthenticationis not anonymous and authenticated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.authorization.AuthorizationManager
verify
-
Constructor Details
-
AuthenticatedAuthorizationManager
public AuthenticatedAuthorizationManager()
-
-
Method Details
-
authenticated
Creates an instance ofAuthenticatedAuthorizationManager.- Type Parameters:
T- the type of object being authorized- Returns:
- the new instance
-
check
Determines if the current user is authorized by evaluating if theAuthenticationis not anonymous and authenticated.- Specified by:
checkin interfaceAuthorizationManager<T>- Parameters:
authentication- theSupplierof theAuthenticationto checkobject- theAuthenticatedAuthorizationManagerobject to check- Returns:
- an
AuthorizationDecision
-