// The mechanism name is passed in from the HttpServletRequest interface as the name reported needs to be
// comparable using '=='
authenticationMechanisms.add(new ServletFormAuthenticationMechanism(FORM_AUTH, loginConfig.getLoginPage(),
loginConfig.getErrorPage()));
} else if (mechanism.equalsIgnoreCase(CLIENT_CERT_AUTH)) {
authenticationMechanisms.add(new ClientCertAuthenticationMechanism(CLIENT_CERT_AUTH));
} else if (mechanism.equalsIgnoreCase(DIGEST_AUTH)) {
authenticationMechanisms.add(new DigestAuthenticationMechanism(loginConfig.getRealmName(), deploymentInfo.getContextPath(), DIGEST_AUTH));
} else {
throw UndertowServletMessages.MESSAGES.unknownAuthenticationMechanism(mechanism);
}