Class ObservationAuthorizationManager<T>
java.lang.Object
org.springframework.security.authorization.ObservationAuthorizationManager<T>
- All Implemented Interfaces:
AuthorizationManager<T>
public final class ObservationAuthorizationManager<T>
extends Object
implements AuthorizationManager<T>
An
AuthorizationManager that observes the authorization- Since:
- 6.0
-
Constructor Summary
ConstructorsConstructorDescriptionObservationAuthorizationManager(io.micrometer.observation.ObservationRegistry registry, AuthorizationManager<T> delegate) -
Method Summary
Modifier and TypeMethodDescriptioncheck(Supplier<Authentication> authentication, T object) Determines if access is granted for a specific authentication and object.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
-
ObservationAuthorizationManager
public ObservationAuthorizationManager(io.micrometer.observation.ObservationRegistry registry, AuthorizationManager<T> delegate)
-
-
Method Details
-
check
Description copied from interface:AuthorizationManagerDetermines if access is granted for a specific authentication and object.- Specified by:
checkin interfaceAuthorizationManager<T>- Parameters:
authentication- theSupplierof theAuthenticationto checkobject- theAuthorizationManagerobject to check- Returns:
- an
AuthorizationDecisionor null if no decision could be made
-