T - the type of object that the authorization check is being done one.@FunctionalInterface
public interface AuthorizationManager<T>
Authentication has access to
a specific object.| Modifier and Type | Method and Description |
|---|---|
AuthorizationDecision |
check(java.util.function.Supplier<Authentication> authentication,
T object)
Determines if access is granted for a specific authentication and object.
|
default void |
verify(java.util.function.Supplier<Authentication> authentication,
T object)
Determines if access should be granted for a specific authentication and object.
|
default void verify(java.util.function.Supplier<Authentication> authentication, T object)
authentication - the Supplier of the Authentication to checkobject - the T object to checkAccessDeniedException - if access is not granted@Nullable AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, T object)
authentication - the Supplier of the Authentication to checkobject - the T object to checkAuthorizationDecision or null if no decision could be made