Class AddMetadataStatementToClientMetadata
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCClientMetadataPopulationAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AddMetadataStatementToClientMetadata
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
public class AddMetadataStatementToClientMetadata
extends AbstractOIDCClientMetadataPopulationAction
An action that adds the trusted metadata_statement chain (containing OP's signed key) to the metadata_statement
claim in the response metadata.
If the incoming message didn't contain metadata_statement, nothing will be done. If it contained only
metadata_statements that are not trusted, an error event is raised. Otherwise, one matching federation is picked
by random to the response metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.The map of static metadata_statements, key for FO, value for the statement.private Function<ProfileRequestContext,Map<String, String>> The lookup function for obtaining incoming metadata statements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) voidsetMetadataStatements(Map<String, String> metadataStatements) Set the map of static metadata_statements, key for FO, value for the statement.voidSet the lookup function for obtaining incoming metadata statements.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCClientMetadataPopulationAction
doPreExecute, getInputMetadata, getOutputMetadata, setOidcInputMetadataLookupStrategy, setOidcOutputMetadataLookupStrategyMethods 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. -
statements
The map of static metadata_statements, key for FO, value for the statement. -
statementsLookupFunction
The lookup function for obtaining incoming metadata statements.
-
-
Constructor Details
-
AddMetadataStatementToClientMetadata
public AddMetadataStatementToClientMetadata()Constructor.
-
-
Method Details
-
setMetadataStatements
Set the map of static metadata_statements, key for FO, value for the statement.- Parameters:
metadataStatements- The map of static metadata_statements, key for FO, value for the statement.
-
setStatementsLookupFunction
public void setStatementsLookupFunction(Function<ProfileRequestContext, Map<String, String>> function) Set the lookup function for obtaining incoming metadata statements.- Parameters:
function- The lookup function for obtaining incoming metadata statements.
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-