This helper class, part of the SAML-based Single Sign-On Reference Tool,
serves to digitally sign XML files, given the contents of the XML file, and a
pair of public and private keys. The file is signed as per the specifications
defined by SAML 2.0.
This class has been taken from the Google Apps SSO sample code: