Class LLBasicAuthenticator
java.lang.Object
com.io7m.looseleaf.server.internal.auth.LLBasicAuthenticator
- All Implemented Interfaces:
org.eclipse.jetty.security.Authenticator
public final class LLBasicAuthenticator
extends Object
implements org.eclipse.jetty.security.Authenticator
An authenticator for basic authentication.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.security.Authenticator
org.eclipse.jetty.security.Authenticator.AuthConfiguration, org.eclipse.jetty.security.Authenticator.Factory -
Constructor Summary
ConstructorsConstructorDescriptionLLBasicAuthenticator(LLTelemetryServiceType inTelemetry, LLMetricsService inMetrics) An authenticator for basic authentication. -
Method Summary
Modifier and TypeMethodDescriptionvoidprepareRequest(jakarta.servlet.ServletRequest request) booleansecureResponse(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, boolean mandatory, org.eclipse.jetty.server.Authentication.User validatedUser) voidsetConfiguration(org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration) org.eclipse.jetty.server.AuthenticationvalidateRequest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, boolean mandatory)
-
Constructor Details
-
LLBasicAuthenticator
An authenticator for basic authentication.- Parameters:
inTelemetry- The telemetry serviceinMetrics- The metrics service
-
-
Method Details
-
setConfiguration
public void setConfiguration(org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration) - Specified by:
setConfigurationin interfaceorg.eclipse.jetty.security.Authenticator
-
getAuthMethod
- Specified by:
getAuthMethodin interfaceorg.eclipse.jetty.security.Authenticator
-
prepareRequest
public void prepareRequest(jakarta.servlet.ServletRequest request) - Specified by:
prepareRequestin interfaceorg.eclipse.jetty.security.Authenticator
-
validateRequest
public org.eclipse.jetty.server.Authentication validateRequest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, boolean mandatory) throws org.eclipse.jetty.security.ServerAuthException - Specified by:
validateRequestin interfaceorg.eclipse.jetty.security.Authenticator- Throws:
org.eclipse.jetty.security.ServerAuthException
-
secureResponse
public boolean secureResponse(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, boolean mandatory, org.eclipse.jetty.server.Authentication.User validatedUser) - Specified by:
secureResponsein interfaceorg.eclipse.jetty.security.Authenticator
-