org.jboss.arquillian.ajocado.utils
Class HeaderUtils
java.lang.Object
org.jboss.arquillian.ajocado.utils.HeaderUtils
public final class HeaderUtils
- extends Object
Encapsulates HTTP header creation
- Author:
- Karel Piwko
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createBasicAuthorization
public static RequestHeader createBasicAuthorization(String username,
String password)
- Creates a header which corresponds to HTTP Basic authorization
- Parameters:
username - User name to be encoded in headerpassword - Password to be encoded in header
- Returns:
- Header which corresponds to HTTP Basic authorization for given credentials
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.