Interface ResponsePage

All Known Implementing Classes:
DefaultResponsePage, ThymeleafResponsePage

public interface ResponsePage
A response page for posting back SAML responses. The POST page typically looks like:
 <!DOCTYPE html>
 <html lang="en">
 <head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
   <title>SAML Response</title>
 </head>
 <body onload="document.forms[0].submit()">
   <form action="https://www.example.com/sso" method="POST">
     <input type="hidden" name="SAMLResponse" value="..." />
     <input type="hidden" name="RelayState" value="..." />
     <noscript>
       <p/>Your web browser does not have JavaScript enabled. Click the "Continue" button below to proceed.</p/>
       <p/><input type="submit" value="Continue" /></p/>
     </noscript/>
   </form>
 </body>
 </html>
 
Author:
Martin Lindström
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendResponse(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String destination, String samlResponse, String relayState)
    Sends a SAML Response message to the given destination.
  • Method Details

    • sendResponse

      void sendResponse(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String destination, String samlResponse, String relayState) throws IOException
      Sends a SAML Response message to the given destination.
      Parameters:
      httpServletRequest - the HTTP servlet request (in case the implementation wants to redirect the user)
      httpServletResponse - the HTTP servlet response
      destination - the destination URL
      samlResponse - the Base64-encoded SAML response message
      relayState - the relay state (may be null)
      Throws:
      IOException - for errors writing to the servlet response