public class DigestAuthenticator extends Authenticator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
schemeName |
| Constructor and Description |
|---|
DigestAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthorization(java.lang.String requestUri,
java.lang.String authenticateHeader,
java.lang.String userName,
java.lang.String userPassword,
java.lang.String userRealm)
Generate the authorization header value that will be sent to the server.
|
java.lang.String |
getSchemeName()
Get the authentication method.
|
getAuthorization, parseAuthenticateHeader, parseWWWAuthenticateHeader, validatePassword, validateRealm, validateUsernamepublic static final java.lang.String schemeName
public java.lang.String getAuthorization(java.lang.String requestUri,
java.lang.String authenticateHeader,
java.lang.String userName,
java.lang.String userPassword,
java.lang.String userRealm)
throws AuthenticationException
AuthenticatorgetAuthorization in class AuthenticatorrequestUri - The request URIauthenticateHeader - The server authentication header receiveduserName - The user nameuserPassword - The user passworduserRealm - The realm for which the provided user name and password are valid. null to
indicate all realms.AuthenticationException - When an error occurspublic java.lang.String getSchemeName()
AuthenticatorgetSchemeName in class AuthenticatorCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.