Class AddMetadata

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class AddMetadata extends AbstractApplicationAction
Action that adds an outbound MessageContext and stores a SAML Metadata document as the outbound message.

Metadata is produced from different possible sources based on profile configuration, currently either an evaluated Velocity template on a configurable path, or sourced from the hub's MetadataResolver service.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MESSAGE, EventIds.INVALID_MSG_CTX, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR, EventIds.MESSAGE_PROC_ERROR, EventIds.UNABLE_TO_DECODE, IdPEventIds.INVALID_PROFILE_CONFIG
Postcondition:
ProfileRequestContext.getOutboundMessageContext().getMessage() instanceof EntityDescriptor