Top Fields Constructors Methods
org.eclipse.jetty.security.authentication

public Class BasicAuthenticator

extends LoginAuthenticator
Class Inheritance
Imports
java.nio.charset.Charset, .StandardCharsets, java.util.Base64, org.eclipse.jetty.http.HttpHeader, .HttpStatus, org.eclipse.jetty.security.AuthenticationState, .Authenticator, .ServerAuthException, .UserIdentity, org.eclipse.jetty.server.Request, .Response, org.eclipse.jetty.util.Callback

Field Summary

Modifier and TypeField and Description
private Charset
Inherited from org.eclipse.jetty.security.authentication.LoginAuthenticator:
_identityService_loginService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
authorization(String user, String password)

public String
public Charset
public void
public AuthenticationState
validateRequest(Request
The request
req
,
Response
The response
res
,
Callback
the callback to use for writing a response
callback
)

Implements org.eclipse.jetty.security.Authenticator.validateRequest.

Validate a request

Inherited from org.eclipse.jetty.security.authentication.LoginAuthenticator:
getLoginServiceloginlogoutsetConfigurationupdateSession

Field Detail

_charsetback to summary
private Charset _charset

Constructor Detail

BasicAuthenticatorback to summary
public BasicAuthenticator()

Method Detail

authorizationback to summary
public static String authorization(String user, String password)
getAuthenticationTypeback to summary
public String getAuthenticationType()

Implements org.eclipse.jetty.security.Authenticator.getAuthenticationType.

Returns:String

Doc from org.eclipse.jetty.security.Authenticator.getAuthenticationType.

The name of the authentication type

Annotations
@Override
getCharsetback to summary
public Charset getCharset()
setCharsetback to summary
public void setCharset(Charset charset)
validateRequestback to summary
public AuthenticationState validateRequest(Request req, Response res, Callback callback) throws ServerAuthException

Implements org.eclipse.jetty.security.Authenticator.validateRequest.

Doc from org.eclipse.jetty.security.Authenticator.validateRequest.

Validate a request

Parameters
req:Request

The request

res:Response

The response

callback:Callback

the callback to use for writing a response

Returns:AuthenticationState

An Authentication. If Authentication is successful, this will be a Succeeded. If a response has been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will implement AuthenticationState.ResponseSent.

Annotations
@Override
Exceptions
ServerAuthException:
if unable to validate request