1. Time Based Security Filter
Generally positioned immediately after an inbound connector in a
Mule flow, the Anypoint Filter Processorevaluates two message
properties, and rejects the message if the values fall outside of its
configured parameters.
The properties that are evaluated are:
•IP address – If the IP address of a message falls outside the filter’s
configured IP address range, Mule does not process the message
(see image below).
•Creation timestamps — Where the message’s creation date and
time fall outside the filter’s configured acceptable lifespan (that is,
the message is older than expected), Mule does not process the
message (see image below).
3. Time Based Security Filter– Flow
Contd…
• Use HTTP Connector to receive request
• Use variable to set test value as
“#[server.dateTime.toDate()]” type
“java.util.Date”
• Different logger to test the behaviour
• Invoke component to add delay for testing
• Security filter used operation “Filter expired”,
Expire in 30 sec and compare with flow var
“test” set at step 2