Class Saml2Message

java.lang.Object
com.codename1.backend.security.saml2.Saml2Message

public final class Saml2Message extends Object

A SAML protocol message on its way to the identity provider -- an AuthnRequest, a LogoutRequest or a LogoutResponse -- encoded for its binding, and how the browser is sent there.

With a signing key, the HTTP-Redirect binding signs the query (section 3.4.4.1 of the bindings) and the HTTP-POST binding signs the XML.

  • Method Details

    • getId

      public String getId()
      The message's ID, which an answer must name in InResponseTo.
    • getBinding

    • getLocation

      public String getLocation()
    • getParameterName

      public String getParameterName()
      SAMLRequest or SAMLResponse.
    • getValue

      public String getValue()
      The parameter's value: deflated and base64 for the redirect binding, base64 alone for the POST binding.
    • getRelayState

      public String getRelayState()
    • getRedirectUrl

      public String getRedirectUrl()
      The address to send the browser to, for the redirect binding.
    • getPostPage

      public String getPostPage()
      A page that posts the message to the identity provider, for the POST binding.