} 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)) {
authenticator = new SpnegoAuthenticator(loginService, realmName, unauthenticatedIdentity);
} else {
authenticator = new NoneAuthenticator(unauthenticatedIdentity);
}