Module dev.eidentification.bankid
Class PhoneRequirement.PhoneRequirementBuilder
java.lang.Object
dev.eidentification.bankid.client.model.PhoneRequirement.PhoneRequirementBuilder
- Enclosing class:
PhoneRequirement
This class represents a builder for creating PhoneRequirement objects.
It allows setting the pin code, card reader, and certificate policies for the PhoneRequirement.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates the PhoneRequirement record using the current state of the builder.cardReader
(@Nullable CardReader cardReader) Set the cardReader parameter for the PhoneRequirement record.certificatePolicies
(@Nullable String certificatePolicies) Set the certificatePolicies parameter for the PhoneRequirement record.Set the pinCode parameter for the PhoneRequirement record.toString()
-
Method Details
-
pinCode
Set the pinCode parameter for the PhoneRequirement record.- Parameters:
pinCode
- Boolean value that indicates if users are required to sign the transaction with their PIN code.- Returns:
- This builder, but with pinCode property set.
-
cardReader
Set the cardReader parameter for the PhoneRequirement record.- Parameters:
cardReader
- Instance of the CardReader enum that indicates the requirement for the type of card reader.- Returns:
- This builder, but with cardReader property set.
-
certificatePolicies
public PhoneRequirement.PhoneRequirementBuilder certificatePolicies(@Nullable String certificatePolicies) Set the certificatePolicies parameter for the PhoneRequirement record.- Parameters:
certificatePolicies
- String representing the specific certificate policies for the user certificate.- Returns:
- This builder, but with certificatePolicies property set.
-
build
Creates the PhoneRequirement record using the current state of the builder.- Returns:
- A new instance of PhoneRequirement.
-
toString
-