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 theProfileRequestContextwith aRelyingPartyUIContext. The contents are populated by accessing aSAMLMetadataContextvia 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 AttributeConsumingServiceacsDesriptorThe ACS context.private EntityDescriptorentityDescriptorTheEntityDescriptor.private List<String>fallbackLanguagesThe system wide languages to inspect if there is no match between metadata and browser.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,SAMLMetadataContext>metadataContextLookupStrategyStrategy function for access toSAMLMetadataContext.private RelyingPartyUIContextrpUIContextThe RPUI context - we always create this indoPreExecute(ProfileRequestContext).private Function<ProfileRequestContext,RelyingPartyUIContext>rpUIContextCreateStrategyStrategy function to create theRelyingPartyUIContext.private SPSSODescriptorspSSODescriptorTheSPSSODescriptor.
-
Constructor Summary
Constructors Constructor Description SetRPUIInformation()Constructor.
-
Method Summary
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, 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, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
metadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,SAMLMetadataContext> metadataContextLookupStrategy
Strategy function for access toSAMLMetadataContext.
-
rpUIContextCreateStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyUIContext> rpUIContextCreateStrategy
Strategy function to create theRelyingPartyUIContext.
-
fallbackLanguages
@Nullable private List<String> fallbackLanguages
The system wide languages to inspect if there is no match between metadata and browser.
-
entityDescriptor
@Nullable private EntityDescriptor entityDescriptor
TheEntityDescriptor. If we cannot find this we short cut thedoExecute(ProfileRequestContext)stage.
-
spSSODescriptor
@Nullable private SPSSODescriptor spSSODescriptor
TheSPSSODescriptor. Not finding this is not fatal
-
rpUIContext
private RelyingPartyUIContext rpUIContext
The RPUI context - we always create this indoPreExecute(ProfileRequestContext).
-
acsDesriptor
private AttributeConsumingService acsDesriptor
The ACS context.
-
-
Method Detail
-
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
public Function<ProfileRequestContext,RelyingPartyUIContext> 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
public void setFallbackLanguages(@Nonnull @NonnullElements List<String> langs)
Set the system wide default languages.- Parameters:
langs- a semi-colon separated string.
-
getRPUInfo
@Nullable protected UIInfo getRPUInfo()
Get the RPUIInfo, caching the value and consulting if needed.- Returns:
- the value or null if there is none.
-
doPreExecute
protected boolean doPreExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doExecutein classAbstractProfileAction
-
-