Class HttpBasicAuthentication
- java.lang.Object
-
- org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator
-
- org.apache.archiva.redback.integration.filter.authentication.basic.HttpBasicAuthentication
-
@Service("httpAuthenticator#basic") public class HttpBasicAuthentication extends HttpAuthenticatorHttpBasicAuthentication- Author:
- Joakim Erdfelt
-
-
Field Summary
-
Fields inherited from class org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator
log, securitySystem
-
-
Constructor Summary
Constructors Constructor Description HttpBasicAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchallenge(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String realmName, AuthenticationException exception)Return a HTTP 403 - Access Denied response.AuthenticationResultgetAuthenticationResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Parse the incoming request and return an AuthenticationResult.StringgetId()-
Methods inherited from class org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator
authenticate, authenticate, getSecuritySession, getSessionUser, isAlreadyAuthenticated, setSecuritySession, setSessionUser
-
-
-
-
Constructor Detail
-
HttpBasicAuthentication
public HttpBasicAuthentication()
-
-
Method Detail
-
getAuthenticationResult
public AuthenticationResult getAuthenticationResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AuthenticationException, AccountLockedException, MustChangePasswordException
Description copied from class:HttpAuthenticatorParse the incoming request and return an AuthenticationResult.- Specified by:
getAuthenticationResultin classHttpAuthenticator- Returns:
- null if no http auth credentials, or the actual authentication result based on the credentials.
- Throws:
AuthenticationExceptionAccountLockedExceptionMustChangePasswordException
-
challenge
public void challenge(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String realmName, AuthenticationException exception) throws IOException
Return a HTTP 403 - Access Denied response.- Specified by:
challengein classHttpAuthenticator- Parameters:
request- the request to use.response- the response to use.realmName- the realm name to state.exception- the exception to base the message off of.- Throws:
IOException- if there was a problem with theHttpServletResponse.sendError(int,String)call.
-
-