Class SignRequestWrapper

java.lang.Object
se.swedenconnect.schemas.dss_1_0.RequestBaseType
se.swedenconnect.schemas.dss_1_0.SignRequest
se.idsec.signservice.integration.dss.SignRequestWrapper
All Implemented Interfaces:
Serializable

public class SignRequestWrapper extends se.swedenconnect.schemas.dss_1_0.SignRequest implements Serializable
A wrapper for easier access to the DSS extensions.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • SignRequestWrapper

      public SignRequestWrapper()
      Constructor setting up an empty SignRequest.
    • SignRequestWrapper

      public SignRequestWrapper(se.swedenconnect.schemas.dss_1_0.SignRequest signRequest)
      Constructor.
      Parameters:
      signRequest - the request to wrap.
  • Method Details

    • getWrappedSignRequest

      public se.swedenconnect.schemas.dss_1_0.SignRequest getWrappedSignRequest()
      Gets the wrapped SignRequest object.
      Returns:
      the wrapped SignRequest object
    • getSignRequestExtension

      public se.swedenconnect.schemas.csig.dssext_1_1.SignRequestExtension getSignRequestExtension() throws SignServiceProtocolException
      Utility method that obtains the SignRequestExtension (from the OptionalInputs).
      Returns:
      the SignRequestExtension
      Throws:
      SignServiceProtocolException - for unmarshalling errors
    • setSignRequestExtension

      public void setSignRequestExtension(se.swedenconnect.schemas.csig.dssext_1_1.SignRequestExtension signRequestExtension) throws SignServiceProtocolException
      Assigns the SignRequestExtension by adding it to OptionalInputs.

      Note: If the OptionalInputs already contains data it is overwritten.

      Parameters:
      signRequestExtension - the extension to add
      Throws:
      SignServiceProtocolException - for JAXB errors
    • getOptionalInputs

      public se.swedenconnect.schemas.dss_1_0.AnyType getOptionalInputs()
      Overrides:
      getOptionalInputs in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • setOptionalInputs

      public void setOptionalInputs(se.swedenconnect.schemas.dss_1_0.AnyType value)
      Overrides:
      setOptionalInputs in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • isSetOptionalInputs

      public boolean isSetOptionalInputs()
      Overrides:
      isSetOptionalInputs in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • getInputDocuments

      public se.swedenconnect.schemas.dss_1_0.InputDocuments getInputDocuments()
      Overrides:
      getInputDocuments in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • setInputDocuments

      public void setInputDocuments(se.swedenconnect.schemas.dss_1_0.InputDocuments value)
      Overrides:
      setInputDocuments in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • getSignTasks

      public se.swedenconnect.schemas.csig.dssext_1_1.SignTasks getSignTasks() throws SignServiceProtocolException
      Utility method that obtains the SignTasks element from the InputDocuments.
      Returns:
      the SignTasks element or null
      Throws:
      SignServiceProtocolException - for unmarshalling errors
    • setSignTasks

      public void setSignTasks(se.swedenconnect.schemas.csig.dssext_1_1.SignTasks signTasks) throws SignServiceProtocolException
      Utility method that add a SignTasks object to the InputDocuments.
      Parameters:
      signTasks - the object to add
      Throws:
      SignServiceProtocolException - for marshalling errors
    • isSetInputDocuments

      public boolean isSetInputDocuments()
      Overrides:
      isSetInputDocuments in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • getRequestID

      public String getRequestID()
      Overrides:
      getRequestID in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • setRequestID

      public void setRequestID(String value)
      Overrides:
      setRequestID in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • isSetRequestID

      public boolean isSetRequestID()
      Overrides:
      isSetRequestID in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • getProfile

      public String getProfile()
      Overrides:
      getProfile in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • setProfile

      public void setProfile(String value)
      Overrides:
      setProfile in class se.swedenconnect.schemas.dss_1_0.RequestBaseType
    • isSetProfile

      public boolean isSetProfile()
      Overrides:
      isSetProfile in class se.swedenconnect.schemas.dss_1_0.RequestBaseType