Class DataToSign

java.lang.Object
se.swedenconnect.bankid.rpapi.service.UserVisibleData
se.swedenconnect.bankid.rpapi.service.DataToSign
All Implemented Interfaces:
Serializable

public class DataToSign extends UserVisibleData
Class the represents "to-be-signed" input for a signature operation.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • DataToSign

      public DataToSign()
  • Method Details

    • setUserNonVisibleDataRaw

      public void setUserNonVisibleDataRaw(byte[] bytes)
      Assigns the data that is part of the signature process but should not be displayed to the user. This supplied data is the raw bytes and the method will Base64 encode it.

      See also setUserNonVisibleData(String).

      Parameters:
      bytes - the data that is part of the signature process but should not be displayed to the user (raw data)
    • setUserNonVisibleData

      public void setUserNonVisibleData(String userNonVisibleData)
      Assigns the data that is part of the signature process but should not be displayed to the user.

      The value must be base 64-encoded. 0 - 200 000 characters (after base 64-encoding).

      See also setUserNonVisibleDataRaw(byte[]).

      Parameters:
      userNonVisibleData - the data that is part of the signature process but should not be displayed to the user (base64-encoded)
    • getUserNonVisibleData

      public String getUserNonVisibleData()
      Returns the data that is part of the signature process but should not be displayed to the user.
      Returns:
      data to be signed, but not displayed to the user
    • toString

      public String toString()
      Overrides:
      toString in class UserVisibleData