Package net.shibboleth.idp.ui.impl
Class SetRPUIInformation
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
Action to populate the
ProfileRequestContext
with a RelyingPartyUIContext
. The contents are populated
by accessing a SAMLMetadataContext
via lookup function and using it to copy data over to the UI context.- Event:
EventIds.PROCEED_EVENT_ID
,EventIds.INVALID_PROFILE_CTX
- Postcondition:
- If a lookup function returns a SAMLMetadataContext, then a RelyingPartyUIContext is created and data copied into it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AttributeConsumingService
The ACS context.private EntityDescriptor
TheEntityDescriptor
.The system wide languages to inspect if there is no match between metadata and browser.private final org.slf4j.Logger
Class logger.Strategy function for access toSAMLMetadataContext
.private RelyingPartyUIContext
The RPUI context - we always create this indoPreExecute(ProfileRequestContext)
.Strategy function to create theRelyingPartyUIContext
.private SPSSODescriptor
TheSPSSODescriptor
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(ProfileRequestContext profileRequestContext) protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) Get the mechanism to go from theProfileRequestContext
to theSAMLMetadataContext
.Get the mechanism to create/get theRelyingPartyUIContext
from theProfileRequestContext
.protected UIInfo
Get the RPUIInfo
, caching the value and consulting if needed.void
setFallbackLanguages
(List<String> langs) Set the system wide default languages.void
Set the mechanism to go from theProfileRequestContext
to theSAMLMetadataContext
.void
Set the mechanism to create/get theRelyingPartyUIContext
from theProfileRequestContext
.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
metadataContextLookupStrategy
Strategy function for access toSAMLMetadataContext
. -
rpUIContextCreateStrategy
Strategy function to create theRelyingPartyUIContext
. -
fallbackLanguages
The system wide languages to inspect if there is no match between metadata and browser. -
entityDescriptor
TheEntityDescriptor
. If we cannot find this we short cut thedoExecute(ProfileRequestContext)
stage. -
spSSODescriptor
TheSPSSODescriptor
. Not finding this is not fatal -
rpUIContext
The RPUI context - we always create this indoPreExecute(ProfileRequestContext)
. -
acsDesriptor
The ACS context.
-
-
Constructor Details
-
SetRPUIInformation
public SetRPUIInformation()Constructor.
-
-
Method Details
-
getMetadataContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,SAMLMetadataContext> getMetadataContextLookupStrategy()Get the mechanism to go from theProfileRequestContext
to theSAMLMetadataContext
.- Returns:
- lookup strategy
-
setMetadataContextLookupStrategy
public void setMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SAMLMetadataContext> strgy) Set the mechanism to go from theProfileRequestContext
to theSAMLMetadataContext
.- Parameters:
strgy
- what to set.
-
getRPUIContextCreateStrategy
Get the mechanism to create/get theRelyingPartyUIContext
from theProfileRequestContext
.- Returns:
- lookup/creation strategy
-
setRPUIContextCreateStrategy
public void setRPUIContextCreateStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyUIContext> strategy) Set the mechanism to create/get theRelyingPartyUIContext
from theProfileRequestContext
.- Parameters:
strategy
- what to set.
-
setFallbackLanguages
Set the system wide default languages.- Parameters:
langs
- a semi-colon separated string.
-
getRPUInfo
Get the RPUIInfo
, caching the value and consulting if needed.- Returns:
- the value or null if there is none.
-
doPreExecute
- Overrides:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-