Package com.gradle.scan.plugin
Interface BuildScanDataObfuscation
-
@Deprecated public interface BuildScanDataObfuscationDeprecated.since 3.17, replaced byBuildScanDataObfuscationConfigurationAllows registering functions for obfuscating certain identifying information within build scans.- See Also:
BuildScanExtension.getObfuscation()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidhostname(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)Deprecated.Registers a function to transform the local hostname and public hostname captured.voidipAddresses(java.util.function.Function<? super java.util.List<java.net.InetAddress>,? extends java.util.List<java.lang.String>> obfuscator)Deprecated.Registers a function used to transform the IP addresses captured.voidusername(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)Deprecated.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)
Deprecated.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 anullvalue.- Parameters:
obfuscator- the function to obfuscate the username- Since:
- 2.4.2
-
hostname
void hostname(java.util.function.Function<? super java.lang.String,? extends java.lang.String> obfuscator)
Deprecated.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 anullvalue.- Parameters:
obfuscator- the function to obfuscate the hostname- Since:
- 2.4.2
-
ipAddresses
void ipAddresses(java.util.function.Function<? super java.util.List<java.net.InetAddress>,? extends java.util.List<java.lang.String>> obfuscator)
Deprecated.Registers a function used to transform the IP addresses captured.The function receives a list of
InetAddressthat would be captured, and should return the list ofStringthat will be captured.The received list may be
nullor empty, and the function may return anullor empty list, but may not return a list with anullelement.- Parameters:
obfuscator- the function to obfuscate the IP addresses- Since:
- 2.4.2
-
-