Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. obj.inputHttpHeaders_x = new Map<String, String>();
  2. String username = 'xyz';
  3. String password = 'passwordIsthis';
  4. Blob headerValue = Blob.valueOf(username + ':' + password);
  5. String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
  6. obj.inputHttpHeaders_x.put('Authorization', authorizationHeader);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement