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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tomcat.websocket.AuthenticatorparseAuthenticateHeader, validatePassword, validateRealm, validateUsername
- 
Field Details- 
schemeName- See Also:
 
- 
charsetparam- See Also:
 
 
- 
- 
Constructor Details- 
BasicAuthenticatorpublic BasicAuthenticator()
 
- 
- 
Method Details- 
getAuthorizationpublic 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 class- Authenticator
- Parameters:
- requestUri- The request URI
- authenticateHeader- The server authentication header received
- userName- The user name
- userPassword- The user password
- userRealm- 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
 
- 
getSchemeNameDescription copied from class:AuthenticatorGet the authentication method.- Specified by:
- getSchemeNamein class- Authenticator
- Returns:
- the authentication scheme
 
 
-