Interface BuildScanDataObfuscationConfiguration
-
public interface BuildScanDataObfuscationConfiguration
Allows registering functions for obfuscating certain identifying information within build scans.- Since:
- 3.17
- See Also:
BuildScanConfiguration.getObfuscation()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
hostname(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)
Registers a function to transform the local hostname and public hostname captured.void
ipAddresses(java.util.function.Function<? super java.util.List<java.net.InetAddress>,? extends java.util.List<java.lang.String>> obfuscator)
Registers a function used to transform the IP addresses captured.void
username(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)
Registers a function to transform the username captured.
-
-
-
Method Detail
-
username
void username(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)
Registers a function to transform the username captured.The function receives the username that would be captured, and should return the username that will be captured.
The received username may be
null
, and the function may return anull
value.- Parameters:
obfuscator
- the function to obfuscate the username
-
hostname
void hostname(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)
Registers a function to transform the local hostname and public hostname captured.The function receives the hostname that would be captured, and should return the hostname that will be captured.
The received hostname may be
null
, and the function may return anull
value.- Parameters:
obfuscator
- the function to obfuscate the hostname
-
ipAddresses
void ipAddresses(java.util.function.Function<? super java.util.List<java.net.InetAddress>,? extends java.util.List<java.lang.String>> obfuscator)
Registers a function used to transform the IP addresses captured.The function receives a list of
InetAddress
that would be captured, and should return the list ofString
that will be captured.The received list may be
null
or empty, and the function may return anull
or empty list, but may not return a list with anull
element.- Parameters:
obfuscator
- the function to obfuscate the IP addresses
-
-