public class BasicAuthenticationScheme extends Object implements HTTPAuthenticationScheme
| Constructor and Description |
|---|
BasicAuthenticationScheme(String realm) |
| Modifier and Type | Method and Description |
|---|---|
void |
challengeClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.http.HttpServletRequest request,
DefaultLoginCredentials creds)
Extracts the credentials from the given
HttpServletRequest and populate the DefaultLoginCredentials with them. |
String[] |
extractUsernameAndPassword(javax.servlet.http.HttpServletRequest request) |
boolean |
postAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs any post-authentication logic regarding of the authentication result.
|
public BasicAuthenticationScheme(String realm)
public void extractCredential(javax.servlet.http.HttpServletRequest request,
DefaultLoginCredentials creds)
HTTPAuthenticationSchemeExtracts the credentials from the given HttpServletRequest and populate the DefaultLoginCredentials with them.
extractCredential in interface HTTPAuthenticationSchemepublic void challengeClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
HTTPAuthenticationSchemeChallenges the client if no credentials were supplied or the credentials were not extracted in order to continue with the authentication.
challengeClient in interface HTTPAuthenticationSchemeIOExceptionpublic boolean postAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
HTTPAuthenticationSchemePerforms any post-authentication logic regarding of the authentication result.
postAuthentication in interface HTTPAuthenticationSchemeIOExceptionpublic String[] extractUsernameAndPassword(javax.servlet.http.HttpServletRequest request)
Copyright © 2013. All Rights Reserved.