Getting started Community Training Tutorials Documentation APIs, AI & Tools
public class HttpOperations {
/**
* Authenticates received HTTP requests. Must be used after a listener component.
*/
@Throws(BasicSecurityErrorTypeProvider.class)
public void basicSecurityFilter(@ParameterGroup(name = "Security Filter") HttpBasicAuthenticationFilter filter,
AuthenticationHandler authenticationHandler) { (1)
try {
filter.authenticate(authenticationHandler);
} catch (BasicUnauthorisedException e) {
throw new ModuleException(BASIC_AUTHENTICATION, e);
} catch (SecurityProviderNotFoundException | SecurityException | UnknownAuthenticationTypeException e) {
throw new ModuleException(SERVER_SECURITY, e);
}
}
// ...
}



