Class Saml2AuthenticationRequest.Builder

    • Method Detail

      • issuer

        public Saml2AuthenticationRequest.Builder issuer​(java.lang.String issuer)
        Sets the issuer for the authentication request.
        Parameters:
        issuer - - a required value
        Returns:
        this Builder
      • credentials

        public Saml2AuthenticationRequest.Builder credentials​(java.util.function.Consumer<java.util.Collection<Saml2X509Credential>> credentials)
        Modifies the collection of Saml2X509Credential credentials used in communication between IDP and SP, specifically signing the authentication request. For example: Saml2X509Credential credential = ...; return Saml2AuthenticationRequest.withLocalSpEntityId("id") .credentials((c) -> c.add(credential)) ... .build();
        Parameters:
        credentials - - a consumer that can modify the collection of credentials
        Returns:
        this object
      • destination

        public Saml2AuthenticationRequest.Builder destination​(java.lang.String destination)
        Sets the Destination for the authentication request. Typically the Service Provider EntityID
        Parameters:
        destination - - a required value
        Returns:
        this Builder
      • assertionConsumerServiceUrl

        public Saml2AuthenticationRequest.Builder assertionConsumerServiceUrl​(java.lang.String assertionConsumerServiceUrl)
        Sets the assertionConsumerServiceURL for the authentication request. Typically the Service Provider EntityID
        Parameters:
        assertionConsumerServiceUrl - - a required value
        Returns:
        this Builder