title: How to Sign SAML Response using Open SAML?
body: <p>I have to implement a similar logic to <a href="https://www.samltool.com/sign_response.php" rel="nofollow noreferrer">this</a> in Java.</p>
  
  <p>I have an XML which is not signed and the message before sending to Service provider. I have both private and public key and unsigned XML.</p>
  
  <p>Can some one help me providing a code snippet exactly which method to called in order to sign the message using public and private key.</p>