java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<SADRequest>
se.swedenconnect.opensaml.sweid.saml2.signservice.build.SADRequestBuilder
All Implemented Interfaces:
SAMLObjectBuilder<SADRequest>

public class SADRequestBuilder extends AbstractSAMLObjectBuilder<SADRequest>
Builder for creating a SADRequest using the builder pattern.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • SADRequestBuilder

      public SADRequestBuilder()
  • Method Details

    • builder

      public static SADRequestBuilder builder()
      Utility method that creates a builder.
      Returns:
      a builder
    • id

      public SADRequestBuilder id(String id)
      Assigns the ID attribute for the SADRequest.
      Parameters:
      id - the ID attribute
      Returns:
      the builder
    • requesterID

      public SADRequestBuilder requesterID(String requesterID)
      Assigns the requester ID (entityID of the SP requesting the SAD).
      Parameters:
      requesterID - the entityID of the requester
      Returns:
      the builder
    • signRequestID

      public SADRequestBuilder signRequestID(String signRequestID)
      Assigns the value of the RequestID attribute of the associated SignRequest.
      Parameters:
      signRequestID - the signature request ID
      Returns:
      the builder
    • docCount

      public SADRequestBuilder docCount(Integer docCount)
      Assigns the number of requested signatures in the associated sign request.
      Parameters:
      docCount - the document count
      Returns:
      the builder
    • requestedVersion

      public SADRequestBuilder requestedVersion(SADVersion sadVersion)
      Assigns the requested version of the SAD.
      Parameters:
      sadVersion - the SAD version
      Returns:
      the builder
    • requestParams

      public SADRequestBuilder requestParams(RequestParams requestParams)
      Assigns the RequestParams element.
      Parameters:
      requestParams - the RequestParams
      Returns:
      the builder
    • getObjectType

      protected Class<SADRequest> getObjectType()
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<SADRequest>