}
}
private void configureAuthentication(Security.Builder builder) {
if(authMethod != null) {
AuthMethod method = AuthMethod.valueOf(authMethod);
if(method.equals(AuthMethod.BASIC)) {
builder.authBasic(authUsername, authPassword);
} else if(method.equals(AuthMethod.DIGEST)) {
builder.authDigest(authUsername, authPassword);
} else if(method.equals(AuthMethod.NTLM)) {
builder.authNtlm(authUsername, authPassword, authWorkstation, authDomain);
} else if(method.equals(AuthMethod.SPNEGO)) {
builder.authSpnego();
}
}
}