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 HttpAuthenticator
HttpBasicAuthentication- 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 void
challenge(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String realmName, AuthenticationException exception)
Return a HTTP 403 - Access Denied response.AuthenticationResult
getAuthenticationResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Parse the incoming request and return an AuthenticationResult.String
getId()
-
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:HttpAuthenticator
Parse the incoming request and return an AuthenticationResult.- Specified by:
getAuthenticationResult
in classHttpAuthenticator
- Returns:
- null if no http auth credentials, or the actual authentication result based on the credentials.
- Throws:
AuthenticationException
AccountLockedException
MustChangePasswordException
-
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:
challenge
in 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.
-
-