public final class HTTPHeaderUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setHTTPBasicAuthHeader(org.apache.http.HttpMessage message,
java.lang.String username,
java.lang.String password)
Create and set HTTP Basic Authentication header based on the given values.
|
public static void setHTTPBasicAuthHeader(org.apache.http.HttpMessage message, java.lang.String username, java.lang.String password) throws java.lang.IllegalArgumentException
message - the message object to set the header tousername - if null or empty, this method is a no-oppassword - non-null and non-empty passwordjava.lang.IllegalArgumentException - on bad valuesCopyright © 2015 Tampere University of Technology, Pori Department.