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  | 
protected static Random | 
RANDOM  | 
loginPage, passwordKey, usernameKey| Constructor and Description | 
|---|
DuoFactorsAuthenticator()  | 
| Modifier and Type | Method and Description | 
|---|---|
NuxeoPrincipal | 
createIdentity(String username)  | 
protected String | 
getRequestedUrl(javax.servlet.http.HttpServletRequest httpRequest)  | 
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()  | 
getLoginPageprotected 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)
NuxeoAuthenticationPluginhandleLoginPrompt in interface NuxeoAuthenticationPluginhandleLoginPrompt in class FormAuthenticatorhttpRequest - the requesthttpResponse - the responsepublic UserIdentificationInfo handleRetrieveIdentity(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
NuxeoAuthenticationPluginhandleRetrieveIdentity in interface NuxeoAuthenticationPluginhandleRetrieveIdentity in class FormAuthenticatorhttpRequest - the requesthttpResponse - the responsepublic Boolean needLoginPrompt(javax.servlet.http.HttpServletRequest httpRequest)
NuxeoAuthenticationPluginneedLoginPrompt in interface NuxeoAuthenticationPluginneedLoginPrompt in class FormAuthenticatorpublic void initPlugin(Map<String,String> parameters)
NuxeoAuthenticationPlugininitPlugin in interface NuxeoAuthenticationPlugininitPlugin in class FormAuthenticatorpublic List<String> getUnAuthenticatedURLPrefix()
NuxeoAuthenticationPlugingetUnAuthenticatedURLPrefix in interface NuxeoAuthenticationPlugingetUnAuthenticatedURLPrefix in class FormAuthenticatorpublic NuxeoPrincipal createIdentity(String username) throws LoginException
LoginExceptionprotected NuxeoPrincipal validateUserIdentity() throws LoginException
LoginExceptionprotected String getRequestedUrl(javax.servlet.http.HttpServletRequest httpRequest)
Copyright © 2019 Nuxeo. All rights reserved.