public class DuoFactorsAuthenticator extends FormAuthenticator
Modifier and Type | Field and Description |
---|---|
protected static Integer |
CACHE_CONCURRENCY_LEVEL |
protected static Integer |
CACHE_MAXIMUM_SIZE |
protected static Integer |
CACHE_TIMEOUT |
loginPage, passwordKey, usernameKey
Constructor and Description |
---|
DuoFactorsAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Principal |
createIdentity(String username) |
List<String> |
getUnAuthenticatedURLPrefix()
Returns the list of prefix for unauthenticated URLs, typically the URLs associated to login prompt.
|
Boolean |
handleLoginPrompt(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
String baseURL)
Handles the Login Prompt.
|
UserIdentificationInfo |
handleRetrieveIdentity(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Retrieves user identification information from the request.
|
void |
initPlugin(Map<String,String> parameters)
Initializes the Plugin from parameters set in the XML descriptor.
|
Boolean |
needLoginPrompt(javax.servlet.http.HttpServletRequest httpRequest)
Defines if the authentication plugin needs to do a login prompt.
|
protected NuxeoPrincipal |
validateUserIdentity() |
getLoginPage
protected static final Integer CACHE_CONCURRENCY_LEVEL
protected static final Integer CACHE_MAXIMUM_SIZE
protected static final Integer CACHE_TIMEOUT
public DuoFactorsAuthenticator()
public Boolean handleLoginPrompt(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, String baseURL)
NuxeoAuthenticationPlugin
handleLoginPrompt
in interface NuxeoAuthenticationPlugin
handleLoginPrompt
in class FormAuthenticator
httpRequest
- the requesthttpResponse
- the responsepublic UserIdentificationInfo handleRetrieveIdentity(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
NuxeoAuthenticationPlugin
handleRetrieveIdentity
in interface NuxeoAuthenticationPlugin
handleRetrieveIdentity
in class FormAuthenticator
httpRequest
- the requesthttpResponse
- the responsepublic Boolean needLoginPrompt(javax.servlet.http.HttpServletRequest httpRequest)
NuxeoAuthenticationPlugin
needLoginPrompt
in interface NuxeoAuthenticationPlugin
needLoginPrompt
in class FormAuthenticator
public void initPlugin(Map<String,String> parameters)
NuxeoAuthenticationPlugin
initPlugin
in interface NuxeoAuthenticationPlugin
initPlugin
in class FormAuthenticator
public List<String> getUnAuthenticatedURLPrefix()
NuxeoAuthenticationPlugin
getUnAuthenticatedURLPrefix
in interface NuxeoAuthenticationPlugin
getUnAuthenticatedURLPrefix
in class FormAuthenticator
public Principal createIdentity(String username) throws LoginException
LoginException
protected NuxeoPrincipal validateUserIdentity() throws LoginException
LoginException
Copyright © 2015 Nuxeo SA. All rights reserved.