Module dev.eidentification.bankid
Record Class PhoneSignRequest
java.lang.Object
java.lang.Record
dev.eidentification.bankid.client.request.PhoneSignRequest
- Record Components:
personalNumber- The personal number of the user. String 12 digits. Century must be included. If the personal number is excluded, the client must be started with the autoStartToken returned in the response.callInitiator- Indicate if the user or the RP initiated the phone call.requirement- Requirements on how the auth or sign order must be performed.userVisibleData- The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. 1--40 000 characters after base 64 encoding.userNonVisibleData- Data not displayed for the user. 1-200 000 characters after base 64-encoding.userVisibleDataFormat- This parameter indicates that userVisibleData holds formatting characters which, will potentially make the text displayed to the user nicer to look at.
- All Implemented Interfaces:
Request
public record PhoneSignRequest(String personalNumber, CallInitiator callInitiator, @Nullable PhoneRequirement requirement, UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat)
extends Record
implements Request
Request to initiate a sign order when the user is talking to the RP over the phone.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPhoneSignRequest(String personalNumber, CallInitiator callInitiator, @Nullable PhoneRequirement requirement, UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat) PhoneSignRequest constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecallInitiatorrecord component.final booleanIndicates whether some other object is "equal to" this one.getUri()Returns the URI associated with the request.final inthashCode()Returns a hash code value for this object.Returns the value of thepersonalNumberrecord component.@Nullable PhoneRequirementReturns the value of therequirementrecord component.final StringtoString()Returns a string representation of this record class.@Nullable UserNonVisibleDataReturns the value of theuserNonVisibleDatarecord component.Returns the value of theuserVisibleDatarecord component.@Nullable VisibleDataFormatReturns the value of theuserVisibleDataFormatrecord component.
-
Constructor Details
-
PhoneSignRequest
public PhoneSignRequest(String personalNumber, CallInitiator callInitiator, @Nullable PhoneRequirement requirement, UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat) PhoneSignRequest constructor.- Throws:
NullPointerException- ifpersonalNumber,callInitiatororuserVisibleDataisnull
-
-
Method Details
-
builder
-
getUri
Description copied from interface:RequestReturns the URI associated with the request. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
personalNumber
Returns the value of thepersonalNumberrecord component.- Returns:
- the value of the
personalNumberrecord component
-
callInitiator
Returns the value of thecallInitiatorrecord component.- Returns:
- the value of the
callInitiatorrecord component
-
requirement
Returns the value of therequirementrecord component.- Returns:
- the value of the
requirementrecord component
-
userVisibleData
Returns the value of theuserVisibleDatarecord component.- Returns:
- the value of the
userVisibleDatarecord component
-
userNonVisibleData
Returns the value of theuserNonVisibleDatarecord component.- Returns:
- the value of the
userNonVisibleDatarecord component
-
userVisibleDataFormat
Returns the value of theuserVisibleDataFormatrecord component.- Returns:
- the value of the
userVisibleDataFormatrecord component
-