T
- the type of object authorization is being performed against. This does not.public final class AuthenticatedAuthorizationManager<T> extends java.lang.Object implements AuthorizationManager<T>
AuthorizationManager
that determines if the current user is authenticated.Constructor and Description |
---|
AuthenticatedAuthorizationManager() |
Modifier and Type | Method and Description |
---|---|
static <T> AuthenticatedAuthorizationManager<T> |
authenticated()
Creates an instance of
AuthenticatedAuthorizationManager . |
AuthorizationDecision |
check(java.util.function.Supplier<Authentication> authentication,
T object)
Determines if the current user is authorized by evaluating if the
Authentication is not anonymous and authenticated. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verify
public static <T> AuthenticatedAuthorizationManager<T> authenticated()
AuthenticatedAuthorizationManager
.T
- the type of object being authorizedpublic AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, T object)
Authentication
is not anonymous and authenticated.check
in interface AuthorizationManager<T>
authentication
- the Supplier
of the Authentication
to checkobject
- the T
object to checkAuthorizationDecision