Class OpenSamlAuthenticationRequestFactory

    • Constructor Detail

      • OpenSamlAuthenticationRequestFactory

        public OpenSamlAuthenticationRequestFactory()
    • Method Detail

      • setClock

        public void setClock​(java.time.Clock clock)
        ' Use this Clock with Instant.now() for generating timestamps
        Parameters:
        clock -
      • setProtocolBinding

        public void setProtocolBinding​(java.lang.String protocolBinding)
        Sets the protocolBinding to use when generating authentication requests. Acceptable values are SAMLConstants.SAML2_POST_BINDING_URI and SAMLConstants.SAML2_REDIRECT_BINDING_URI The IDP will be reading this value in the AuthNRequest to determine how to send the Response/Assertion to the ACS URL, assertion consumer service URL.
        Parameters:
        protocolBinding - either SAMLConstants.SAML2_POST_BINDING_URI or SAMLConstants.SAML2_REDIRECT_BINDING_URI
        Throws:
        java.lang.IllegalArgumentException - if the protocolBinding is not valid