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 AttributeConsumingServiceThe ACS context.private EntityDescriptorTheEntityDescriptor.The system wide languages to inspect if there is no match between metadata and browser.private final org.slf4j.LoggerClass logger.Strategy function for access toSAMLMetadataContext.Strategy function to create theRelyingPartyUIContext.private SPSSODescriptorTheSPSSODescriptor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) Get the mechanism to go from theProfileRequestContextto theSAMLMetadataContext.Get the mechanism to create/get theRelyingPartyUIContextfrom theProfileRequestContext.protected UIInfoGet the RPUIInfo, caching the value and consulting if needed.voidsetFallbackLanguages(List<String> langs) Set the system wide default languages.voidSet the mechanism to go from theProfileRequestContextto theSAMLMetadataContext.voidSet the mechanism to create/get theRelyingPartyUIContextfrom theProfileRequestContext.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.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 -
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 theProfileRequestContextto theSAMLMetadataContext.- Returns:
- lookup strategy
-
setMetadataContextLookupStrategy
public void setMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SAMLMetadataContext> strgy) Set the mechanism to go from theProfileRequestContextto theSAMLMetadataContext.- Parameters:
strgy- what to set.
-
getRPUIContextCreateStrategy
Get the mechanism to create/get theRelyingPartyUIContextfrom theProfileRequestContext.- Returns:
- lookup/creation strategy
-
setRPUIContextCreateStrategy
public void setRPUIContextCreateStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyUIContext> strategy) Set the mechanism to create/get theRelyingPartyUIContextfrom 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:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-