authenticationMechanisms.add(new ServletFormAuthenticationMechanism(parser, FORM_AUTH, loginConfig.getLoginPage(),
loginConfig.getErrorPage()));
} else if (mechanism.equalsIgnoreCase(CLIENT_CERT_AUTH)) {
authenticationMechanisms.add(new ClientCertAuthenticationMechanism());
} else if (mechanism.equalsIgnoreCase(DIGEST_AUTH)) {
authenticationMechanisms.add(new DigestAuthenticationMechanism(loginConfig.getRealmName(), deploymentInfo.getContextPath(), DIGEST_AUTH));
} else {
throw UndertowServletMessages.MESSAGES.unknownAuthenticationMechanism(mechanism);
}
}
}