blob: 85d9a366eab4fc8dc47b1414b0d94215ce8a883f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.it_jaros.jscanner;
import java.util.*;
public record ScanResult(
String host,
BitSet openPorts,
BitSet filteredPorts,
Map<Integer, ServiceType> bannerRecognition,
List<ScanFailure> errors
) {
public static ScanResult empty(String host) {
return new ScanResult(
host,
new BitSet(PortRange.MAX_PORT),
new BitSet(PortRange.MAX_PORT),
Collections.emptyMap(),
Collections.emptyList()
);
}
}
|