} else if ("BASIC".equalsIgnoreCase(authMethod)) {
authenticator = new BasicAuthenticator(loginService, realmName, unauthenticatedIdentity);
} else if ("CLIENT-CERT".equalsIgnoreCase(authMethod)) {
authenticator = new ClientCertAuthenticator(loginService, unauthenticatedIdentity);
} else if ("DIGEST".equalsIgnoreCase(authMethod)) {
authenticator = new DigestAuthenticator(loginService, realmName, unauthenticatedIdentity);
} else if ("FORM".equalsIgnoreCase(authMethod)) {
authenticator = new FormAuthenticator(loginService, unauthenticatedIdentity, loginPage, errorPage);
} else if ("GENERIC".equalsIgnoreCase(authMethod)) {
authenticator = new GenericHeaderAuthenticator(loginService, unauthenticatedIdentity);
} else if ("SPNEGO".equalsIgnoreCase(authMethod)) {