Module dev.eidentification.bankid
Class PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder
java.lang.Object
dev.eidentification.bankid.client.request.PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder
- Enclosing class:
PhoneAuthenticationRequest
PhoneAuthenticationRequestBuilder is a builder class for creating instances of PhoneAuthenticationRequest.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPhoneAuthenticationRequest
.callInitiator
(CallInitiator callInitiator) Sets the call initiator for the PhoneAuthenticationRequestBuilder.personalNumber
(String personalNumber) Sets the personal number for the PhoneAuthenticationRequestBuilder.requirement
(@Nullable PhoneRequirement requirement) Sets the requirement for phone authentication.toString()
userNonVisibleData
(@Nullable UserNonVisibleData userNonVisibleData) Sets the non-visible data for the user in the PhoneAuthenticationRequestBuilder.userVisibleData
(@Nullable UserVisibleData userVisibleData) Sets the user visible data for the PhoneAuthenticationRequestBuilder.userVisibleDataFormat
(@Nullable VisibleDataFormat userVisibleDataFormat) Sets the user visible data format for the PhoneAuthenticationRequestBuilder.
-
Method Details
-
personalNumber
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder personalNumber(String personalNumber) Sets the personal number for the PhoneAuthenticationRequestBuilder.- Parameters:
personalNumber
- the non-null 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.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
- Throws:
NullPointerException
- if personalNumber is null
-
callInitiator
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder callInitiator(CallInitiator callInitiator) Sets the call initiator for the PhoneAuthenticationRequestBuilder.- Parameters:
callInitiator
- the non-null CallInitiator representing the initiator of the phone call.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
- Throws:
NullPointerException
- if callInitiator is null
-
requirement
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder requirement(@Nullable PhoneRequirement requirement) Sets the requirement for phone authentication.- Parameters:
requirement
- the PhoneRequirement object representing the required conditions for authentication. Can be null.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
-
userVisibleData
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder userVisibleData(@Nullable UserVisibleData userVisibleData) Sets the user visible data for the PhoneAuthenticationRequestBuilder.- Parameters:
userVisibleData
- the nullable UserVisibleData object representing the visible data for authentication.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
-
userNonVisibleData
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder userNonVisibleData(@Nullable UserNonVisibleData userNonVisibleData) Sets the non-visible data for the user in the PhoneAuthenticationRequestBuilder.- Parameters:
userNonVisibleData
- the nullable UserNonVisibleData object representing the non-visible data for authentication.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
- See Also:
-
userVisibleDataFormat
public PhoneAuthenticationRequest.PhoneAuthenticationRequestBuilder userVisibleDataFormat(@Nullable VisibleDataFormat userVisibleDataFormat) Sets the user visible data format for the PhoneAuthenticationRequestBuilder.- Parameters:
userVisibleDataFormat
- the nullable VisibleDataFormat object representing the format of visible data for authentication.- Returns:
- the updated PhoneAuthenticationRequestBuilder object.
-
build
Builds aPhoneAuthenticationRequest
.- Returns:
- the PhoneAuthenticationRequest object
- Throws:
NullPointerException
- ifpersonalNumber
orcallInitiator
isnull
-
toString
-