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

Mutations

44

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

53

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

Active mutators

Tests examined


Report generated by PIT 1.15.0