}
if (serverAuthConfig != null) {
Map authProperties = new HashMap();
authProperties.put(POLICY_CONTEXT_ID_KEY, policyContextId);
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)) {