| 1 | package com.yubico.fido.metadata; | |
| 2 | ||
| 3 | import java.util.Optional; | |
| 4 | import lombok.Builder; | |
| 5 | import lombok.Value; | |
| 6 | import lombok.extern.jackson.Jacksonized; | |
| 7 | ||
| 8 | /** | |
| 9 | * The BiometricAccuracyDescriptor describes relevant accuracy/complexity aspects in the case of a | |
| 10 | * biometric user verification method, see [<a | |
| 11 | * href="https://fidoalliance.org/specs/biometric/requirements/Biometrics-Requirements-v2.0-fd-20201006.html">FIDOBiometricsRequirements</a>]. | |
| 12 | * | |
| 13 | * <p>At least one of the values MUST be set. If the vendor doesn’t want to specify such values, | |
| 14 | * then {@link VerificationMethodDescriptor#getBaDesc()} MUST be omitted. | |
| 15 | * | |
| 16 | * @see <a | |
| 17 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 18 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 19 | */ | |
| 20 | @Value | |
| 21 | @Builder(toBuilder = true) | |
| 22 | @Jacksonized | |
| 23 | public class BiometricAccuracyDescriptor { | |
| 24 | ||
| 25 | Double selfAttestedFRR; | |
| 26 | Double selfAttestedFAR; | |
| 27 | Integer maxTemplates; | |
| 28 | Integer maxRetries; | |
| 29 | Integer blockSlowdown; | |
| 30 | ||
| 31 | /** | |
| 32 | * @see <a | |
| 33 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 34 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 35 | */ | |
| 36 | public Optional<Double> getSelfAttestedFRR() { | |
| 37 |
1
1. getSelfAttestedFRR : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricAccuracyDescriptor::getSelfAttestedFRR → SURVIVED |
return Optional.ofNullable(selfAttestedFRR); |
| 38 | } | |
| 39 | ||
| 40 | /** | |
| 41 | * @see <a | |
| 42 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 43 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 44 | */ | |
| 45 | public Optional<Double> getSelfAttestedFAR() { | |
| 46 |
1
1. getSelfAttestedFAR : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricAccuracyDescriptor::getSelfAttestedFAR → SURVIVED |
return Optional.ofNullable(selfAttestedFAR); |
| 47 | } | |
| 48 | ||
| 49 | /** | |
| 50 | * @see <a | |
| 51 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 52 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 53 | */ | |
| 54 | public Optional<Integer> getMaxTemplates() { | |
| 55 |
1
1. getMaxTemplates : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricAccuracyDescriptor::getMaxTemplates → TIMED_OUT |
return Optional.ofNullable(maxTemplates); |
| 56 | } | |
| 57 | ||
| 58 | /** | |
| 59 | * @see <a | |
| 60 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 61 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 62 | */ | |
| 63 | public Optional<Integer> getMaxRetries() { | |
| 64 |
1
1. getMaxRetries : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricAccuracyDescriptor::getMaxRetries → SURVIVED |
return Optional.ofNullable(maxRetries); |
| 65 | } | |
| 66 | ||
| 67 | /** | |
| 68 | * @see <a | |
| 69 | * href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#biometricaccuracydescriptor-dictionary">FIDO | |
| 70 | * Metadata Statement §3.3. BiometricAccuracyDescriptor dictionary</a> | |
| 71 | */ | |
| 72 | public Optional<Integer> getBlockSlowdown() { | |
| 73 |
1
1. getBlockSlowdown : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricAccuracyDescriptor::getBlockSlowdown → SURVIVED |
return Optional.ofNullable(blockSlowdown); |
| 74 | } | |
| 75 | } | |
Mutations | ||
| 37 |
1.1 |
|
| 46 |
1.1 |
|
| 55 |
1.1 |
|
| 64 |
1.1 |
|
| 73 |
1.1 |