Interface NoAuthResolver
- All Superinterfaces:
Resolver
Special Resolver that gives responses without user authentication.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Implement access control if authorization is enabled.default boolean
requiresAuth
(Request request) Used to check if the resolver requires authentication to be used.Implement request resolution.Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.Resolver
newResponseBuilder, usedWebPermissions
-
Method Details
-
canAccess
Description copied from interface:Resolver
Implement access control if authorization is enabled.Is not called when access control is not active.
-
resolve
Implement request resolution. -
requiresAuth
Description copied from interface:Resolver
Used to check if the resolver requires authentication to be used.- Specified by:
requiresAuth
in interfaceResolver
- Parameters:
request
- Incoming request that you can use to figure out if authentication is required.- Returns:
- true if you want 401 to be given when user has not logged in.
-