BiometricStatusReport.java

1
package com.yubico.fido.metadata;
2
3
import com.yubico.webauthn.extension.uvm.UserVerificationMethod;
4
import java.time.LocalDate;
5
import java.util.Optional;
6
import lombok.Builder;
7
import lombok.NonNull;
8
import lombok.Value;
9
import lombok.extern.jackson.Jacksonized;
10
11
/**
12
 * Contains the current BiometricStatusReport of one of the authenticator’s biometric component.
13
 *
14
 * @see <a
15
 *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
16
 *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
17
 */
18
@Value
19
@Builder(toBuilder = true)
20
@Jacksonized
21
public class BiometricStatusReport {
22
23
  /**
24
   * @see <a
25
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
26
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
27
   */
28
  int certLevel;
29
30
  /**
31
   * @see <a
32
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
33
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
34
   */
35
  @NonNull UserVerificationMethod modality;
36
37
  LocalDate effectiveDate;
38
  String certificationDescriptor;
39
  String certificateNumber;
40
  String certificationPolicyVersion;
41
  String certificationRequirementsVersion;
42
43
  /**
44
   * @see <a
45
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
46
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
47
   */
48
  public Optional<LocalDate> getEffectiveDate() {
49 1 1. getEffectiveDate : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getEffectiveDate → SURVIVED
    return Optional.ofNullable(effectiveDate);
50
  }
51
52
  /**
53
   * @see <a
54
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
55
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
56
   */
57
  public Optional<String> getCertificationDescriptor() {
58 1 1. getCertificationDescriptor : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationDescriptor → SURVIVED
    return Optional.ofNullable(certificationDescriptor);
59
  }
60
61
  /**
62
   * @see <a
63
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
64
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
65
   */
66
  public Optional<String> getCertificateNumber() {
67 1 1. getCertificateNumber : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificateNumber → SURVIVED
    return Optional.ofNullable(certificateNumber);
68
  }
69
70
  /**
71
   * @see <a
72
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
73
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
74
   */
75
  public Optional<String> getCertificationPolicyVersion() {
76 1 1. getCertificationPolicyVersion : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationPolicyVersion → SURVIVED
    return Optional.ofNullable(certificationPolicyVersion);
77
  }
78
79
  /**
80
   * @see <a
81
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-service-v3.0-ps-20210518.html#biometricstatusreport-dictionary">FIDO
82
   *     Metadata Service §3.1.2. BiometricStatusReport dictionary</a>
83
   */
84
  public Optional<String> getCertificationRequirementsVersion() {
85 1 1. getCertificationRequirementsVersion : replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationRequirementsVersion → SURVIVED
    return Optional.ofNullable(certificationRequirementsVersion);
86
  }
87
}

Mutations

49

1.1
Location : getEffectiveDate
Killed by : none
replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getEffectiveDate → SURVIVED

58

1.1
Location : getCertificationDescriptor
Killed by : none
replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationDescriptor → SURVIVED

67

1.1
Location : getCertificateNumber
Killed by : none
replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificateNumber → SURVIVED

76

1.1
Location : getCertificationPolicyVersion
Killed by : none
replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationPolicyVersion → SURVIVED

85

1.1
Location : getCertificationRequirementsVersion
Killed by : none
replaced return value with Optional.empty for com/yubico/fido/metadata/BiometricStatusReport::getCertificationRequirementsVersion → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.15.0