public class DigestAuthenticationScheme extends Object implements HTTPAuthenticationScheme
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REALM_NAME |
static String |
REALM_NAME_INIT_PARAM |
Constructor and Description |
---|
DigestAuthenticationScheme(FilterConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
challengeClient(HttpServletRequest request,
HttpServletResponse response)
Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
|
void |
extractCredential(HttpServletRequest request,
DefaultLoginCredentials creds)
Extracts the credentials from the given
HttpServletRequest and populate the DefaultLoginCredentials with them. |
boolean |
postAuthentication(HttpServletRequest request,
HttpServletResponse response)
Performs any post-authentication logic regarding of the authentication result.
|
public static final String REALM_NAME_INIT_PARAM
public static final String DEFAULT_REALM_NAME
public DigestAuthenticationScheme(FilterConfig config)
public void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds)
HTTPAuthenticationScheme
Extracts the credentials from the given HttpServletRequest
and populate the DefaultLoginCredentials
with them.
extractCredential
in interface HTTPAuthenticationScheme
public void challengeClient(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationScheme
Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
challengeClient
in interface HTTPAuthenticationScheme
IOException
public boolean postAuthentication(HttpServletRequest request, HttpServletResponse response) throws IOException
HTTPAuthenticationScheme
Performs any post-authentication logic regarding of the authentication result.
postAuthentication
in interface HTTPAuthenticationScheme
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.