Class SignatureRequest

java.lang.Object
se.swedenconnect.bankid.rpapi.service.SignatureRequest

public class SignatureRequest extends Object
Representation of the parameters required for a sign call.
Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • SignatureRequest

      public SignatureRequest(String endUserIp, DataToSign dataToSign, Requirement requirement)
      Creates parameter object for an BankIDClient.sign(SignatureRequest) call.
      Parameters:
      endUserIp - the user IP address as seen by the relying party
      dataToSign - the data to sign
      requirement - used by the relying party to set requirements how the sign operation must be performed. Default rules are applied if omitted
      Throws:
      BankIDException - for errors
  • Method Details

    • getEndUserIp

      public String getEndUserIp()
      Gets the user IP address as seen by the relying party.
      Returns:
      the user IP
    • getDataToSign

      public DataToSign getDataToSign()
      Gets the data to sign.
      Returns:
      the data to sign
    • getRequirement

      public Requirement getRequirement()
      Gets the signing requirements.
      Returns:
      the Requirement or null