java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.sweid.saml2.signservice.sap.impl.SADRequestImpl
All Implemented Interfaces:
XMLObject, SAMLObject, SADRequest

public class SADRequestImpl extends AbstractXMLObject implements SADRequest
Implementation class for the SADRequest interface.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • SADRequestImpl

      protected SADRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Specified by:
      getOrderedChildren in interface XMLObject
    • getID

      public String getID()
      Returns the ID attribute of this SADRequest.
      Specified by:
      getID in interface SADRequest
      Returns:
      the ID of this SAD request
    • setID

      public void setID(String id)
      Assigns the ID of this SADRequest.
      Specified by:
      setID in interface SADRequest
      Parameters:
      id - the ID of this SAD request
    • getRequesterID

      public String getRequesterID()
      Returns the requester ID (entityID of the SP requesting the SAD).
      Specified by:
      getRequesterID in interface SADRequest
      Returns:
      the entityID of the requester
    • setRequesterID

      public void setRequesterID(String requesterID)
      Assigns the requester ID (entityID of the SP requesting the SAD).
      Specified by:
      setRequesterID in interface SADRequest
      Parameters:
      requesterID - the entityID of the requester
    • setRequesterID

      public void setRequesterID(XSString requesterID)
      Assigns the requester ID as a XSString string type.
      Parameters:
      requesterID - the requester ID
    • getSignRequestID

      public String getSignRequestID()
      Returns the value of the RequestID attribute of the associated SignRequest.
      Specified by:
      getSignRequestID in interface SADRequest
      Returns:
      the signature request ID
    • setSignRequestID

      public void setSignRequestID(String signRequestID)
      Assigns the value of the RequestID attribute of the associated SignRequest.
      Specified by:
      setSignRequestID in interface SADRequest
      Parameters:
      signRequestID - the signature request ID
    • setSignRequestID

      public void setSignRequestID(XSString signRequestID)
      Assigns the sign request as a XSString string type.
      Parameters:
      signRequestID - the sign request id
    • getDocCount

      public Integer getDocCount()
      Returns the number of requested signatures in the associated sign request.
      Specified by:
      getDocCount in interface SADRequest
      Returns:
      the document count
    • setDocCount

      public void setDocCount(Integer docCount)
      Assigns the number of requested signatures in the associated sign request.
      Specified by:
      setDocCount in interface SADRequest
      Parameters:
      docCount - the document count
    • setDocCount

      public void setDocCount(XSInteger docCount)
      Assigns the DocCount element.
      Parameters:
      docCount - the document count
    • getRequestedVersion

      public SADVersion getRequestedVersion()
      Returns the requested version of the SAD.
      Specified by:
      getRequestedVersion in interface SADRequest
      Returns:
      the SAD version
    • setRequestedVersion

      public void setRequestedVersion(SADVersion sadVersion)
      Assigns the requested version of the SAD.
      Specified by:
      setRequestedVersion in interface SADRequest
      Parameters:
      sadVersion - the SAD version
    • setRequestedVersion

      public void setRequestedVersion(XSString sadVersion)
      Assigns the requested version as a string.
      Parameters:
      sadVersion - the requested SAD version
    • getRequestParams

      public RequestParams getRequestParams()
      Returns the RequestParams element.
      Specified by:
      getRequestParams in interface SADRequest
      Returns:
      the RequestParams, or null
    • setRequestParams

      public void setRequestParams(RequestParams requestParams)
      Assigns the RequestParams element.
      Specified by:
      setRequestParams in interface SADRequest
      Parameters:
      requestParams - the RequestParams