public abstract class BasicAuthUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH_HEADE_NAME |
Modifier and Type | Method and Description |
---|---|
static String |
basicAuthHeader(String username,
String password) |
static org.apache.http.client.CredentialsProvider |
basicCredentialsProvider(String username,
String password)
Deprecated.
remove this later.
|
static String[] |
extractAndDecodeAuthHeader(String header,
String credentialsCharset)
Decodes the header into a username and password.
|
public static final String BASIC_AUTH_HEADE_NAME
public static String[] extractAndDecodeAuthHeader(String header, String credentialsCharset)
header
- headercredentialsCharset
- charset@Deprecated public static org.apache.http.client.CredentialsProvider basicCredentialsProvider(String username, String password)
username
- usernamepassword
- passwordCopyright © 2017. All rights reserved.