public class BasicAuthenticator extends Authenticator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
charsetparam |
static java.lang.String |
schemeName |
Constructor and Description |
---|
BasicAuthenticator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorization(java.lang.String requestUri,
java.lang.String WWWAuthenticate,
java.util.Map<java.lang.String,java.lang.Object> userProperties)
Generate the authentication header that will be sent to the server.
|
java.lang.String |
getSchemeName()
Get the authentication method.
|
parseWWWAuthenticateHeader
public static final java.lang.String schemeName
public static final java.lang.String charsetparam
public java.lang.String getAuthorization(java.lang.String requestUri, java.lang.String WWWAuthenticate, java.util.Map<java.lang.String,java.lang.Object> userProperties) throws AuthenticationException
Authenticator
getAuthorization
in class Authenticator
requestUri
- The request URIWWWAuthenticate
- The server auth challengeuserProperties
- The user informationAuthenticationException
- When an error occurspublic java.lang.String getSchemeName()
Authenticator
getSchemeName
in class Authenticator
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.