As a temporary fix, can I write a Valve that detects a SAML 1.1 payload and includes a digital signature in the SAML response? Just want to make sure if this is possible before going forward for my application.

As a temporary fix, can I write a Valve that detects a SAML 1.1 payload and includes a digital signature in the SAML response? Just want to make sure if this is possible before going forward for my application.