Class Requirement.RequirementBuilder

java.lang.Object
dev.eidentification.bankid.client.model.Requirement.RequirementBuilder
Enclosing class:
Requirement

public static class Requirement.RequirementBuilder extends Object
A builder class for creating Requirement objects.
  • Method Details

    • pinCode

      public Requirement.RequirementBuilder pinCode(@Nullable Boolean pinCode)
      Sets the pinCode requirement for the signature.
      Parameters:
      pinCode - Boolean value indicating whether users are required to sign the transaction with their PIN code. If set to true, users must provide their PIN code even if they have biometrics activated. If set to false, users can sign the transaction with biometrics if available.
      Returns:
      The RequirementBuilder object to allow method chaining.
    • cardReader

      public Requirement.RequirementBuilder cardReader(@Nullable CardReader cardReader)
      Sets the card reader requirement for the signature.
      Parameters:
      cardReader - The card reader requirement for the signature. The valid values are "class1" and "class2".
      Returns:
      The RequirementBuilder object to allow method chaining.
    • certificatePolicies

      public Requirement.RequirementBuilder certificatePolicies(@Nullable String certificatePolicies)
      Sets the certificate policies requirement for the signature.
      Parameters:
      certificatePolicies - The oid in certificate policies in the user certificate. List of String. One wildcard "" is allowed from position 5 and forward i.e. 1.2.752.78.
      Returns:
      The RequirementBuilder object to allow method chaining.
    • personalNumber

      public Requirement.RequirementBuilder personalNumber(@Nullable String personalNumber)
      Sets the personal number requirement for the signature.
      Parameters:
      personalNumber - The personal number of the user. Should be a string of 12 digits, including the century. If the personal number is excluded, the client must be started with the autoStartToken returned in the response.
      Returns:
      The RequirementBuilder object to allow method chaining.
    • build

      public Requirement build()
      Builds a Requirement object based on the set parameters.
      Returns:
      The built Requirement object.
    • toString

      public String toString()
      Overrides:
      toString in class Object