Class ShibbolethAuthenticationServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationServiceImpl
- All Implemented Interfaces:
ShibbolethAuthenticationService
,Adaptable
,Component
,Extensible
,TimestampedService
public class ShibbolethAuthenticationServiceImpl
extends DefaultComponent
implements ShibbolethAuthenticationService
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLoginURL
(String redirectURL) Returns the computed login URL to Shibboleth , ornull
if no login URL is configured.getLoginURL
(javax.servlet.http.HttpServletRequest request) Returns the computed login URL to Shibboleth , ornull
if no login URL is configured.getLogoutURL
(String redirectURL) Returns the computed logout URL to Shibboleth, ornull
if no logout URL is configured.getLogoutURL
(javax.servlet.http.HttpServletRequest request) Returns the computed logout URL to Shibboleth, ornull
if no logout URL is configured.getUserID
(javax.servlet.http.HttpServletRequest httpRequest) Returns the user ID based on the source IdP.Returns a bi-map of the user metadata {response headers, values} based on the configuration.getUserMetadata
(String userIdField, javax.servlet.http.HttpServletRequest httpRequest) Returns a map of the user metadata based on the configuration.protected String
readHeader
(javax.servlet.http.HttpServletRequest request, String key) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, 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
getApplicationStartedOrder
-
Field Details
-
CONFIG_EP
- See Also:
-
config
-
-
Constructor Details
-
ShibbolethAuthenticationServiceImpl
public ShibbolethAuthenticationServiceImpl()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
getConfig
-
getLoginURL
Description copied from interface:ShibbolethAuthenticationService
Returns the computed login URL to Shibboleth , ornull
if no login URL is configured.- Specified by:
getLoginURL
in interfaceShibbolethAuthenticationService
-
getLogoutURL
Description copied from interface:ShibbolethAuthenticationService
Returns the computed logout URL to Shibboleth, ornull
if no logout URL is configured.- Specified by:
getLogoutURL
in interfaceShibbolethAuthenticationService
-
getLoginURL
Description copied from interface:ShibbolethAuthenticationService
Returns the computed login URL to Shibboleth , ornull
if no login URL is configured.- Specified by:
getLoginURL
in interfaceShibbolethAuthenticationService
-
getLogoutURL
Description copied from interface:ShibbolethAuthenticationService
Returns the computed logout URL to Shibboleth, ornull
if no logout URL is configured.- Specified by:
getLogoutURL
in interfaceShibbolethAuthenticationService
-
getUserID
Description copied from interface:ShibbolethAuthenticationService
Returns the user ID based on the source IdP. In the configuration is defined which HTTP header is used for each registered IdP.- Specified by:
getUserID
in interfaceShibbolethAuthenticationService
-
getUserMetadata
public Map<String,Object> getUserMetadata(String userIdField, javax.servlet.http.HttpServletRequest httpRequest) Description copied from interface:ShibbolethAuthenticationService
Returns a map of the user metadata based on the configuration. Keys are the field names and values coming from the HTTP headers.- Specified by:
getUserMetadata
in interfaceShibbolethAuthenticationService
-
getUserMetadata
Description copied from interface:ShibbolethAuthenticationService
Returns a bi-map of the user metadata {response headers, values} based on the configuration.- Specified by:
getUserMetadata
in interfaceShibbolethAuthenticationService
-
readHeader
-