Package org.apache.tomcat.websocket
Class DigestAuthenticator
java.lang.Object
org.apache.tomcat.websocket.Authenticator
org.apache.tomcat.websocket.DigestAuthenticator
Authenticator supporting the DIGEST auth method.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate the authentication header that will be sent to the server.Get the authentication method.Methods inherited from class org.apache.tomcat.websocket.Authenticator
parseWWWAuthenticateHeader
-
Field Details
-
schemeName
- See Also:
-
-
Constructor Details
-
DigestAuthenticator
public DigestAuthenticator()
-
-
Method Details
-
getAuthorization
public String getAuthorization(String requestUri, String WWWAuthenticate, Map<String, Object> userProperties) throws AuthenticationExceptionDescription copied from class:AuthenticatorGenerate the authentication header that will be sent to the server.- Specified by:
getAuthorizationin classAuthenticator- Parameters:
requestUri- The request URIWWWAuthenticate- The server auth challengeuserProperties- The user information- Returns:
- The auth header
- Throws:
AuthenticationException- When an error occurs
-
getSchemeName
Description copied from class:AuthenticatorGet the authentication method.- Specified by:
getSchemeNamein classAuthenticator- Returns:
- the auth scheme
-