Class HttpStatusEntryPoint
java.lang.Object
com.codename1.backend.security.HttpStatusEntryPoint
- All Implemented Interfaces:
AuthenticationEntryPoint
Answers with a status and nothing else:
new HttpStatusEntryPoint(401) for
an API whose clients know how to authenticate without being told.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommence(HttpServer.Request request, AuthenticationException authException) The answer.
-
Constructor Details
-
HttpStatusEntryPoint
public HttpStatusEntryPoint(int status)
-
-
Method Details
-
commence
public HttpServer.Response commence(HttpServer.Request request, AuthenticationException authException) Description copied from interface:AuthenticationEntryPointThe answer.- Specified by:
commencein interfaceAuthenticationEntryPoint- Parameters:
authException- why the request was not let through
-