Class PluggableAuthenticationService
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService
-
- All Implemented Interfaces:
Adaptable
,Component
,Extensible
,TimestampedService
public class PluggableAuthenticationService extends DefaultComponent
-
-
Field Summary
Fields Modifier and Type Field Description static String
EP_AUTHENTICATOR
static String
EP_CHAIN
static String
EP_LOGINSCREEN
static String
EP_OPENURL
static String
EP_SESSIONMANAGER
static String
EP_SPECIFIC_CHAINS
static String
EP_STARTURL
static String
NAME
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description PluggableAuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ComponentContext context)
Activates the component.boolean
canBypassRequest(javax.servlet.ServletRequest request)
void
deactivate(ComponentContext context)
Deactivates the component.boolean
doHandlePrompt(javax.servlet.http.HttpServletRequest request)
List<String>
getAuthChain()
List<String>
getAuthChain(javax.servlet.http.HttpServletRequest request)
String
getBaseURL(javax.servlet.ServletRequest request)
AuthenticationPluginDescriptor
getDescriptor(String pluginName)
LoginScreenConfig
getLoginScreenConfig()
List<OpenUrlDescriptor>
getOpenUrls()
NuxeoAuthenticationPlugin
getPlugin(String pluginName)
List<NuxeoAuthenticationPlugin>
getPluginChain()
String
getSpecificAuthChainName(javax.servlet.http.HttpServletRequest request)
List<String>
getStartURLPatterns()
void
invalidateSession(javax.servlet.ServletRequest request)
boolean
needResetLogin(javax.servlet.ServletRequest request)
void
onAuthenticatedSessionCreated(javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session, CachableUserIdentificationInfo cachebleUserInfo)
void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
registerLoginScreenConfig(LoginScreenConfig config)
javax.servlet.http.HttpSession
reinitSession(javax.servlet.http.HttpServletRequest httpRequest)
void
unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
unregisterLoginScreenConfig(LoginScreenConfig config)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
EP_AUTHENTICATOR
public static final String EP_AUTHENTICATOR
- See Also:
- Constant Field Values
-
EP_SESSIONMANAGER
public static final String EP_SESSIONMANAGER
- See Also:
- Constant Field Values
-
EP_CHAIN
public static final String EP_CHAIN
- See Also:
- Constant Field Values
-
EP_SPECIFIC_CHAINS
public static final String EP_SPECIFIC_CHAINS
- See Also:
- Constant Field Values
-
EP_STARTURL
public static final String EP_STARTURL
- See Also:
- Constant Field Values
-
EP_OPENURL
public static final String EP_OPENURL
- See Also:
- Constant Field Values
-
EP_LOGINSCREEN
public static final String EP_LOGINSCREEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate(ComponentContext context)
Description copied from interface:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
deactivate
public void deactivate(ComponentContext context)
Description copied from interface:Component
Deactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interfaceComponent
- Overrides:
deactivate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
doHandlePrompt
public boolean doHandlePrompt(javax.servlet.http.HttpServletRequest request)
-
getSpecificAuthChainName
public String getSpecificAuthChainName(javax.servlet.http.HttpServletRequest request)
-
getPluginChain
public List<NuxeoAuthenticationPlugin> getPluginChain()
-
getPlugin
public NuxeoAuthenticationPlugin getPlugin(String pluginName)
-
getDescriptor
public AuthenticationPluginDescriptor getDescriptor(String pluginName)
-
invalidateSession
public void invalidateSession(javax.servlet.ServletRequest request)
-
reinitSession
public javax.servlet.http.HttpSession reinitSession(javax.servlet.http.HttpServletRequest httpRequest)
-
canBypassRequest
public boolean canBypassRequest(javax.servlet.ServletRequest request)
-
needResetLogin
public boolean needResetLogin(javax.servlet.ServletRequest request)
-
getBaseURL
public String getBaseURL(javax.servlet.ServletRequest request)
-
onAuthenticatedSessionCreated
public void onAuthenticatedSessionCreated(javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session, CachableUserIdentificationInfo cachebleUserInfo)
-
getOpenUrls
public List<OpenUrlDescriptor> getOpenUrls()
-
getLoginScreenConfig
public LoginScreenConfig getLoginScreenConfig()
-
registerLoginScreenConfig
public void registerLoginScreenConfig(LoginScreenConfig config)
- Since:
- 10.10
-
unregisterLoginScreenConfig
public void unregisterLoginScreenConfig(LoginScreenConfig config)
- Since:
- 10.10
-
-