} else if ("DIGEST".equalsIgnoreCase(authMethod)) {
authenticator = new DigestAuthenticator(loginService, realmName, unauthenticatedIdentity);
} else if ("FORM".equalsIgnoreCase(authMethod)) {
authenticator = new FormAuthenticator(loginService, unauthenticatedIdentity, loginPage, errorPage);
} else {
authenticator = new NoneAuthenticator(unauthenticatedIdentity);
}
AccessControlContext defaultAcc = ContextManager.registerSubjectShort(defaultSubject, null, null);
Authorizer authorizer = createAuthorizer(defaultAcc);