Class DataToSign
java.lang.Object
se.swedenconnect.bankid.rpapi.service.UserVisibleData
se.swedenconnect.bankid.rpapi.service.DataToSign
- All Implemented Interfaces:
Serializable
Class the represents "to-be-signed" input for a signature operation.
- Author:
- Martin Lindström
- See Also:
-
Field Summary
Fields inherited from class se.swedenconnect.bankid.rpapi.service.UserVisibleData
VISIBLE_DATA_FORMAT_SIMPLE_MARKDOWN_V1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data that is part of the signature process but should not be displayed to the user.void
setUserNonVisibleData
(String userNonVisibleData) Assigns the data that is part of the signature process but should not be displayed to the user.void
setUserNonVisibleDataRaw
(byte[] bytes) Assigns the data that is part of the signature process but should not be displayed to the user.toString()
Methods inherited from class se.swedenconnect.bankid.rpapi.service.UserVisibleData
getUserVisibleData, getUserVisibleDataFormat, setDisplayText, setUserVisibleData, setUserVisibleDataFormat
-
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
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
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
- Overrides:
toString
in classUserVisibleData
-