{
String auth=configuration.getAuthMethod();
Authenticator authenticator=null;
if (auth==null || Constraint.__BASIC_AUTH.equalsIgnoreCase(auth))
authenticator=new BasicAuthenticator();
else if (Constraint.__DIGEST_AUTH.equalsIgnoreCase(auth))
authenticator=new DigestAuthenticator();
else if (Constraint.__FORM_AUTH.equalsIgnoreCase(auth))
authenticator=new FormAuthenticator();
else if ( Constraint.__SPNEGO_AUTH.equalsIgnoreCase(auth) )