Package net.shibboleth.idp.ui.impl
Class SetRPUIInformation
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
public class SetRPUIInformation extends AbstractProfileAction
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
Fields Modifier and Type Field Description private AttributeConsumingService
acsDesriptor
The ACS context.private EntityDescriptor
entityDescriptor
TheEntityDescriptor
.private List<String>
fallbackLanguages
The system wide languages to inspect if there is no match between metadata and browser.private org.slf4j.Logger
log
Class logger.private Function<ProfileRequestContext,SAMLMetadataContext>
metadataContextLookupStrategy
Strategy function for access toSAMLMetadataContext
.private RelyingPartyUIContext
rpUIContext
The RPUI context - we always create this indoPreExecute(ProfileRequestContext)
.private Function<ProfileRequestContext,RelyingPartyUIContext>
rpUIContextCreateStrategy
Strategy function to create theRelyingPartyUIContext
.private SPSSODescriptor
spSSODescriptor
TheSPSSODescriptor
. -
Constructor Summary
Constructors Constructor Description SetRPUIInformation()
Constructor. -
Method Summary
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
-