Class Saml2AuthenticationRequest

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

public final class Saml2AuthenticationRequest extends Object
An AuthnRequest on its way to the identity provider: the request itself, encoded for its binding, and how the browser is sent there.
  • Method Details

    • create

      public static Saml2AuthenticationRequest create(RelyingPartyRegistration registration, String acsLocation, String entityId, String relayState, long now) throws IOException
      Makes the AuthnRequest for registration.
      Parameters:
      acsLocation - this server's ACS address, resolved
      entityId - this server's entity ID, resolved
      relayState - what the identity provider hands back unchanged
      now - the issue instant, in milliseconds
      Throws:
      IOException
    • getId

      public String getId()
      The request's ID, which the response must name in InResponseTo.
    • getBinding

    • getLocation

      public String getLocation()
    • getSamlRequest

      public String getSamlRequest()
      The SAMLRequest parameter: 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 request to the identity provider, for the POST binding.