Subject serviceSubject = new Subject();
authenticator = new JaspicAuthenticator(serverAuthConfig, authProperties, serviceSubject, callbackHandler, identityService);
} 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)) {