HttpAuthentication.createBasicAuthentication

Returns a BasicAuthentication object that stores the username and password required for HTTP Basic Authenication

Example:

 var auth = HttpAuthentication.createBasicAuthentication("username", "password");
 var response = services.rest.get(.., .., .., auth);
 

returns BasicAuthentication

Parameters

java.lang.String  username,  java.lang.String  password,