Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
import com.sun.jersey.core.util.Base64;
String pair = "<username>:<password>";
byte[] encodedBytes = Base64.encode(pair.getBytes());
globalMap.put("authorization", new String(encodedBytes));
System.out.println(globalMap.get("authorization"));