Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class BasicAuthenticationEntryPoint

  1. Object
  2. BasicAuthenticationEntryPoint

ImplementsAuthenticationEntryPoint

Answers 401 with the challenge that makes a client send HTTP Basic credentials: WWW-Authenticate: Basic realm="Realm".

Constructors

public BasicAuthenticationEntryPoint()

Methods

public String getRealmName()
public void setRealmName(String realmName)
public HttpServer.Response commence(HttpServer.Request request, AuthenticationException authException)The answer.

Inherited methods

Constructor details

BasicAuthenticationEntryPoint

public BasicAuthenticationEntryPoint()

Method details

getRealmName

public String getRealmName()

setRealmName

public void setRealmName(String realmName)

commence

public HttpServer.Response commence(HttpServer.Request request, AuthenticationException authException)
The answer.

Parameters

request HttpServer.Request
Not documented.
authException AuthenticationException
why the request was not let through