initial commit

Added original code from spring-security-saml that was backported.