Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.auth.service
Class PluggableAuthenticationService

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService
All Implemented Interfaces:
Adaptable, Component, Extensible

public class PluggableAuthenticationService
extends DefaultComponent


Field Summary
static String EP_AUTHENTICATOR
           
static String EP_CBFACTORY
           
static String EP_CHAIN
           
static String EP_OPENURL
           
static String EP_PREFILTER
           
static String EP_PROPAGATOR
           
static String EP_SESSIONMANAGER
           
static String EP_SPECIFIC_CHAINS
           
static String EP_STARTURL
           
static String NAME
           
 
Constructor Summary
PluggableAuthenticationService()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 boolean canBypassRequest(ServletRequest request)
           
 void deactivate(ComponentContext context)
          Deactivates the component.
<T> T
getAdapter(Class<T> adapter)
          Returns an object which is an instance of the given class associated with this object.
 List<String> getAuthChain()
           
 List<String> getAuthChain(HttpServletRequest request)
           
 String getBaseURL(ServletRequest request)
           
 UserIdentificationInfoCallbackHandler getCallbackHandler(UserIdentificationInfo userIdent)
           
 AuthenticationPluginDescriptor getDescriptor(String pluginName)
           
 List<OpenUrlDescriptor> getOpenUrls()
           
 NuxeoAuthenticationPlugin getPlugin(String pluginName)
           
 List<NuxeoAuthenticationPlugin> getPluginChain()
           
 List<NuxeoAuthPreFilter> getPreFilters()
           
 String getSpecificAuthChainName(HttpServletRequest request)
           
 List<String> getStartURLPatterns()
           
 void initPreFilters()
           
 void invalidateSession(ServletRequest request)
           
 boolean needResetLogin(ServletRequest request)
           
 void onAuthenticatedSessionCreated(ServletRequest request, HttpSession session, CachableUserIdentificationInfo cachebleUserInfo)
           
 void propagateUserIdentificationInformation(CachableUserIdentificationInfo cachableUserIdent)
           
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 HttpSession reinitSession(HttpServletRequest httpRequest)
           
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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_PROPAGATOR

public static final String EP_PROPAGATOR
See Also:
Constant Field Values

EP_CBFACTORY

public static final String EP_CBFACTORY
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_PREFILTER

public static final String EP_PREFILTER
See Also:
Constant Field Values
Constructor Detail

PluggableAuthenticationService

public PluggableAuthenticationService()
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 interface Component
Overrides:
activate in class DefaultComponent
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 interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
Overrides:
registerContribution in class DefaultComponent

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   ComponentInstance contributor)
Overrides:
unregisterContribution in class DefaultComponent

getStartURLPatterns

public List<String> getStartURLPatterns()

getAuthChain

public List<String> getAuthChain()

getAuthChain

public List<String> getAuthChain(HttpServletRequest request)

getSpecificAuthChainName

public String getSpecificAuthChainName(HttpServletRequest request)

getCallbackHandler

public UserIdentificationInfoCallbackHandler getCallbackHandler(UserIdentificationInfo userIdent)

propagateUserIdentificationInformation

public void propagateUserIdentificationInformation(CachableUserIdentificationInfo cachableUserIdent)

getPluginChain

public List<NuxeoAuthenticationPlugin> getPluginChain()

getPlugin

public NuxeoAuthenticationPlugin getPlugin(String pluginName)

getDescriptor

public AuthenticationPluginDescriptor getDescriptor(String pluginName)

invalidateSession

public void invalidateSession(ServletRequest request)

reinitSession

public HttpSession reinitSession(HttpServletRequest httpRequest)

canBypassRequest

public boolean canBypassRequest(ServletRequest request)

needResetLogin

public boolean needResetLogin(ServletRequest request)

getBaseURL

public String getBaseURL(ServletRequest request)

onAuthenticatedSessionCreated

public void onAuthenticatedSessionCreated(ServletRequest request,
                                          HttpSession session,
                                          CachableUserIdentificationInfo cachebleUserInfo)

getOpenUrls

public List<OpenUrlDescriptor> getOpenUrls()

initPreFilters

public void initPreFilters()

getPreFilters

public List<NuxeoAuthPreFilter> getPreFilters()

getAdapter

public <T> T getAdapter(Class<T> adapter)
Description copied from interface: Adaptable
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Specified by:
getAdapter in interface Adaptable
Overrides:
getAdapter in class DefaultComponent
Parameters:
adapter - the adapter class to look up
Returns:
a object castable to the given class, or null if this object does not have an adapter for the given class

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.