-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class PrivacyAgent implements Comparable<PrivacyAgent>
The privacy agent defines a unique agent to visit websites.
Page visits through different privacy agents should not be detected as the same person, even if the visits are from the same host.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrivacyAgent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidentprivate final Stringdisplayprivate final BooleanisDefaultprivate final BooleanisPrototypeprivate final PathcontextDirprivate Fingerprintfingerprint
-
Constructor Summary
Constructors Constructor Description PrivacyAgent(Path contextDir, BrowserType browserType)PrivacyAgent(Path contextDir, Fingerprint fingerprint)
-
Method Summary
Modifier and Type Method Description final StringgetIdent()final StringgetDisplay()final BooleangetIsDefault()final BooleangetIsPrototype()final PathgetContextDir()final FingerprintgetFingerprint()final UnitsetFingerprint(Fingerprint fingerprint)Booleanequals(Object other)The PrivacyAgent equality. IntegerhashCode()IntegercompareTo(PrivacyAgent other)-
-
Method Detail
-
getDisplay
final String getDisplay()
-
getIsDefault
final Boolean getIsDefault()
-
getIsPrototype
final Boolean getIsPrototype()
-
getContextDir
final Path getContextDir()
-
getFingerprint
final Fingerprint getFingerprint()
-
setFingerprint
final Unit setFingerprint(Fingerprint fingerprint)
-
equals
Boolean equals(Object other)
The PrivacyAgent equality. Note: do not use the default equality function
-
compareTo
Integer compareTo(PrivacyAgent other)
-
-
-
-