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