PatternAccuracyDescriptor.java

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 {@link PatternAccuracyDescriptor} describes relevant accuracy/complexity aspects in the case
10
 * that a pattern is used as the user verification method.
11
 *
12
 * @see <a
13
 *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
14
 *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
15
 */
16
@Value
17
@Builder(toBuilder = true)
18
@Jacksonized
19
public class PatternAccuracyDescriptor {
20
21
  /**
22
   * @see <a
23
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
24
   *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
25
   */
26
  long minComplexity;
27
28
  /**
29
   * @see <a
30
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
31
   *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
32
   */
33
  Integer maxRetries;
34
35
  /**
36
   * @see <a
37
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
38
   *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
39
   */
40
  Integer blockSlowdown;
41
42
  /**
43
   * @see <a
44
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
45
   *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
46
   */
47
  public Optional<Integer> getMaxRetries() {
48 1 1. getMaxRetries : replaced return value with Optional.empty for com/yubico/fido/metadata/PatternAccuracyDescriptor::getMaxRetries → SURVIVED
    return Optional.ofNullable(maxRetries);
49
  }
50
51
  /**
52
   * @see <a
53
   *     href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#patternaccuracydescriptor-dictionary">FIDO
54
   *     Metadata Statement §3.4. PatternAccuracyDescriptor dictionary</a>
55
   */
56
  public Optional<Integer> getBlockSlowdown() {
57 1 1. getBlockSlowdown : replaced return value with Optional.empty for com/yubico/fido/metadata/PatternAccuracyDescriptor::getBlockSlowdown → SURVIVED
    return Optional.ofNullable(blockSlowdown);
58
  }
59
}

Mutations

48

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

57

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

Active mutators

Tests examined


Report generated by PIT 1.15.0