Class AddMetadataStatementToClientMetadata
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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,Aware,MessageSource,MessageSourceAware,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
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Map<String,String>statementsThe map of static metadata_statements, key for FO, value for the statement.private Function<ProfileRequestContext,Map<String,String>>statementsLookupFunctionThe lookup function for obtaining incoming metadata statements.
-
Constructor Summary
Constructors Constructor Description AddMetadataStatementToClientMetadata()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)voidsetMetadataStatements(Map<String,String> metadataStatements)Set the map of static metadata_statements, key for FO, value for the statement.voidsetStatementsLookupFunction(Function<ProfileRequestContext,Map<String,String>> function)Set 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, setOidcOutputMetadataLookupStrategy
-
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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
statements
private Map<String,String> statements
The map of static metadata_statements, key for FO, value for the statement.
-
statementsLookupFunction
private Function<ProfileRequestContext,Map<String,String>> statementsLookupFunction
The lookup function for obtaining incoming metadata statements.
-
-
Method Detail
-
setMetadataStatements
public void setMetadataStatements(Map<String,String> metadataStatements)
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
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-