public class HttpBasicAuthentication extends java.lang.Object implements HttpAuthentication, Configurable
| Modifier | Constructor and Description |
|---|---|
protected |
HttpBasicAuthentication(java.lang.String challenge,
Configuration conf)
Construct an HttpBasicAuthentication for the given challenge parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpBasicAuthentication |
getAuthentication(java.lang.String challenge,
Configuration conf)
This method is responsible for providing Basic authentication information.
|
static java.util.regex.Pattern |
getBasicPattern()
Provides a pattern which can be used by an outside resource to determine if
this class can provide credentials based on simple header information.
|
Configuration |
getConf() |
java.util.List<java.lang.String> |
getCredentials()
Gets the Basic credentials generated by this HttpBasicAuthentication object
|
java.lang.String |
getRealm()
Gets the realm attribute of the HttpBasicAuthentication object.
|
void |
setConf(Configuration conf) |
protected HttpBasicAuthentication(java.lang.String challenge,
Configuration conf)
throws HttpAuthenticationException
WWW-Authenticate: Basic realm="myrealm"challenge - WWW-Authenticate header from web serverHttpAuthenticationExceptionpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface Configurablepublic java.util.List<java.lang.String> getCredentials()
getCredentials in interface HttpAuthenticationAuthorization: Basic Base64 encoded userid:passwordpublic java.lang.String getRealm()
getAuthentication(String, Configuration)
static methodgetRealm in interface HttpAuthenticationpublic static HttpBasicAuthentication getAuthentication(java.lang.String challenge, Configuration conf)
challenge - The challenge string provided by the webserver. This is the text
which follows the WWW-Authenticate header, including the Basic
tag.public static final java.util.regex.Pattern getBasicPattern()
Copyright © 2019 The Apache Software Foundation