Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class BearerTokenAuthenticationFilter
- Object
- BearerTokenAuthenticationFilter
ImplementsSecurityFilter
Authenticates a request from its bearer token.
The token is checked on every request that carries one and nothing is kept:
no session is started and the authentication is not stored. A request
without a token passes through untouched, for the rules further on to
judge. One whose token is refused is answered at once – 401 with the reason
in WWW-Authenticate – and never reaches the application.
Methods
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws Exception | The answer to request; null when nothing under the chain routes it, which the server answers 404. |
Inherited methods
Method details
doFilter
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws ExceptionThe answer to
request; null when nothing under the chain routes it,
which the server answers 404.