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

public class SADRequestImpl extends org.opensaml.core.xml.AbstractXMLObject implements SADRequest
Implementation class for the SADRequest interface.
Author:
Martin Lindström (martin@idsec.se)
  • Field Summary

  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SADRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the number of requested signatures in the associated sign request.
    Returns the ID attribute of this SADRequest.
    List<org.opensaml.core.xml.XMLObject>
    Returns the requested version of the SAD.
    Returns the requester ID (entityID of the SP requesting the SAD).
    Returns the RequestParams element.
    Returns the value of the RequestID attribute of the associated SignRequest.
    void
    setDocCount(Integer docCount)
    Assigns the number of requested signatures in the associated sign request.
    void
    setDocCount(org.opensaml.core.xml.schema.XSInteger docCount)
    Assigns the DocCount element.
    void
    Assigns the ID of this SADRequest.
    void
    setRequestedVersion(org.opensaml.core.xml.schema.XSString sadVersion)
    Assigns the requested version as a string.
    void
    Assigns the requested version of the SAD.
    void
    setRequesterID(String requesterID)
    Assigns the requester ID (entityID of the SP requesting the SAD).
    void
    setRequesterID(org.opensaml.core.xml.schema.XSString requesterID)
    Assigns the requester ID as a XSString string type.
    void
    Assigns the RequestParams element.
    void
    setSignRequestID(String signRequestID)
    Assigns the value of the RequestID attribute of the associated SignRequest.
    void
    setSignRequestID(org.opensaml.core.xml.schema.XSString signRequestID)
    Assigns the sign request as a XSString string type.

    Methods inherited from class org.opensaml.core.xml.AbstractXMLObject

    detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensaml.core.xml.XMLObject

    detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
  • 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<org.opensaml.core.xml.XMLObject> getOrderedChildren()
      Specified by:
      getOrderedChildren in interface org.opensaml.core.xml.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(org.opensaml.core.xml.schema.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(org.opensaml.core.xml.schema.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(org.opensaml.core.xml.schema.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(org.opensaml.core.xml.schema.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