@Immutable public final class HttpBasicAuth extends Object
| Modifier and Type | Field and Description |
|---|---|
static Charset |
CHARSET |
static String |
HEADER_VALUE_PREFIX_BASIC |
static char |
USERNAME_PASSWORD_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static BasicAuthClientCredentials |
getBasicAuthClientCredentials(String sAuthHeader)
Get the Basic authentication credentials from the passed HTTP header value.
|
public static final String HEADER_VALUE_PREFIX_BASIC
public static final char USERNAME_PASSWORD_SEPARATOR
public static final Charset CHARSET
@Nullable public static BasicAuthClientCredentials getBasicAuthClientCredentials(@Nullable String sAuthHeader)
sAuthHeader - The HTTP header value to be interpreted. May be null.null if the passed value is not a correct HTTP Basic
Authentication header value.Copyright © 2016–2019 Philip Helger. All rights reserved.