public interface NoAuthResolver extends Resolver
Modifier and Type | Method and Description |
---|---|
default boolean |
canAccess(Request request)
Implement access control if authorization is enabled.
|
default boolean |
requiresAuth(Request request) |
java.util.Optional<Response> |
resolve(Request request)
Implement request resolution.
|
newResponseBuilder
default boolean canAccess(Request request)
Resolver
Is not called when access control is not active.
canAccess
in interface Resolver
request
- HTTP request, contains all information necessary to check access.for {@link WebUser} that has access permissions.
java.util.Optional<Response> resolve(Request request)
resolve
in interface Resolver
request
- HTTP request, contains all information necessary to resolve the request.for return value
default boolean requiresAuth(Request request)
requiresAuth
in interface Resolver