Class PhoneRequirement.PhoneRequirementBuilder

java.lang.Object
dev.eidentification.bankid.client.model.PhoneRequirement.PhoneRequirementBuilder
Enclosing class:
PhoneRequirement

public static class PhoneRequirement.PhoneRequirementBuilder extends Object
This class represents a builder for creating PhoneRequirement objects. It allows setting the pin code, card reader, and certificate policies for the PhoneRequirement.
  • Method Details

    • pinCode

      public PhoneRequirement.PhoneRequirementBuilder pinCode(@Nullable Boolean 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

      public PhoneRequirement.PhoneRequirementBuilder cardReader(@Nullable CardReader 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

      public PhoneRequirement build()
      Creates the PhoneRequirement record using the current state of the builder.
      Returns:
      A new instance of PhoneRequirement.
    • toString

      public String toString()
      Overrides:
      toString in class Object