Module dev.eidentification.bankid
Class Requirement.RequirementBuilder
java.lang.Object
dev.eidentification.bankid.client.model.Requirement.RequirementBuilder
- Enclosing class:
Requirement
A builder class for creating Requirement objects.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a Requirement object based on the set parameters.cardReader
(@Nullable CardReader cardReader) Sets the card reader requirement for the signature.certificatePolicies
(@Nullable String certificatePolicies) Sets the certificate policies requirement for the signature.personalNumber
(@Nullable String personalNumber) Sets the personal number requirement for the signature.Sets the pinCode requirement for the signature.toString()
-
Method Details
-
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
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
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
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
Builds a Requirement object based on the set parameters.- Returns:
- The built Requirement object.
-
toString
-