public interface AuthHandler
| Modifier and Type | Method and Description |
|---|---|
String |
getWWWAuthenticateHeader()
Returns the value for the
WWW-Authenticate header field that will be
set for requests which were rejected by isAuthenticated(HttpRequest)
or hasRoles(HttpRequest, String[]). |
boolean |
hasRoles(io.netty.handler.codec.http.HttpRequest request,
String[] roles)
This method is responsible for deciding whether a request meets the role requirement.
|
boolean |
isAuthenticated(io.netty.handler.codec.http.HttpRequest request)
This method is responsible for deciding whether a request is authenticated.
|
boolean isAuthenticated(io.netty.handler.codec.http.HttpRequest request)
request - the HttpRequest in question.true if this request should be handled.Securedboolean hasRoles(io.netty.handler.codec.http.HttpRequest request,
String[] roles)
request - the HttpRequest in question.roles - the roles that are required for this request to be handled.true if this request should be handled.RequiredRolesString getWWWAuthenticateHeader()
WWW-Authenticate header field that will be
set for requests which were rejected by isAuthenticated(HttpRequest)
or hasRoles(HttpRequest, String[]).WWW-Authenticate header fieldCopyright 2021 Cask, Inc. Licensed under the Apache License, Version 2.0