Package org.apache.tomcat.websocket
Class BasicAuthenticator
java.lang.Object
org.apache.tomcat.websocket.Authenticator
org.apache.tomcat.websocket.BasicAuthenticator
Authenticator supporting the BASIC authentication method.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.apache.tomcat.websocket.Authenticator
getAuthorization, parseAuthenticateHeader, parseWWWAuthenticateHeader, validatePassword, validateRealm, validateUsername 
- 
Field Details
- 
schemeName
- See Also:
 
 - 
charsetparam
- See Also:
 
 
 - 
 - 
Constructor Details
- 
BasicAuthenticator
public BasicAuthenticator() 
 - 
 - 
Method Details
- 
getAuthorization
public String getAuthorization(String requestUri, String authenticateHeader, String userName, String userPassword, String userRealm) throws AuthenticationException Description copied from class:AuthenticatorGenerate the authorization header value that will be sent to the server.- Specified by:
 getAuthorizationin classAuthenticator- Parameters:
 requestUri- 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.nullto indicate all realms.- Returns:
 - The generated authorization header value
 - Throws:
 AuthenticationException- When an error occurs
 - 
getSchemeName
Description copied from class:AuthenticatorGet the authentication method.- Specified by:
 getSchemeNamein classAuthenticator- Returns:
 - the authentication scheme
 
 
 -