public class SetRPUIInformation
extends net.shibboleth.idp.profile.AbstractProfileAction
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.EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.metadata.AttributeConsumingService |
acsDesriptor
The ACS context.
|
private org.opensaml.saml.saml2.metadata.EntityDescriptor |
entityDescriptor
The
EntityDescriptor. |
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<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> |
metadataContextLookupStrategy
Strategy function for access to
SAMLMetadataContext. |
private RelyingPartyUIContext |
rpUIContext
The RPUI context - we always create this in
doPreExecute(ProfileRequestContext). |
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> |
rpUIContextCreateStrategy
Strategy function to create the
RelyingPartyUIContext. |
private org.opensaml.saml.saml2.metadata.SPSSODescriptor |
spSSODescriptor
The
SPSSODescriptor. |
| Constructor and Description |
|---|
SetRPUIInformation()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected List<String> |
getBrowserLanguages()
Pluck the languages from the browser.
|
Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> |
getMetadataContextLookupStrategy()
Get the mechanism to go from the
ProfileRequestContext to the SAMLMetadataContext. |
Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> |
getRPUIContextCreateStrategy()
Get the mechanism to create/get the
RelyingPartyUIContext from the ProfileRequestContext. |
protected org.opensaml.saml.ext.saml2mdui.UIInfo |
getRPUInfo()
Get the RP
UIInfo, caching the value and consulting if needed. |
void |
setFallbackLanguages(List<String> langs)
Set the system wide default languages.
|
void |
setMetadataContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> strgy)
Set the mechanism to go from the
ProfileRequestContext to the SAMLMetadataContext. |
void |
setRPUIContextCreateStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> strategy)
Set the mechanism to create/get the
RelyingPartyUIContext from the ProfileRequestContext. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> metadataContextLookupStrategy
SAMLMetadataContext.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> rpUIContextCreateStrategy
RelyingPartyUIContext.@Nullable private List<String> fallbackLanguages
@Nullable private org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor
EntityDescriptor. If we cannot find this we short cut the doExecute(ProfileRequestContext)
stage.@Nullable private org.opensaml.saml.saml2.metadata.SPSSODescriptor spSSODescriptor
SPSSODescriptor. Not finding this is not fatalprivate RelyingPartyUIContext rpUIContext
doPreExecute(ProfileRequestContext).private org.opensaml.saml.saml2.metadata.AttributeConsumingService acsDesriptor
@Nonnull public Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> getMetadataContextLookupStrategy()
ProfileRequestContext to the SAMLMetadataContext.public void setMetadataContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLMetadataContext> strgy)
ProfileRequestContext to the SAMLMetadataContext.strgy - what to set.public Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> getRPUIContextCreateStrategy()
RelyingPartyUIContext from the ProfileRequestContext.public void setRPUIContextCreateStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyUIContext> strategy)
RelyingPartyUIContext from the ProfileRequestContext.strategy - what to set.public void setFallbackLanguages(@Nonnull@NonnullElements List<String> langs)
langs - a semi-colon separated string.@Nullable protected org.opensaml.saml.ext.saml2mdui.UIInfo getRPUInfo()
UIInfo, caching the value and consulting if needed.@Nonnull @NonnullElements protected List<String> getBrowserLanguages()
protected boolean doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.