Class PrivacyAgent
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class PrivacyAgent implements Comparable<PrivacyAgent>
A 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 PrivacyAgentIdidprivate final Stringidentprivate final Stringdisplayprivate final BrowserTypebrowserTypeprivate final BooleanisSystemDefaultprivate final BooleanisDefaultprivate final BooleanisPrototypeprivate final BooleanisGroupprivate final BooleanisTemporaryprivate final BooleanisPermanentprivate final PathcontextDirprivate Fingerprintfingerprintpublic final static PrivacyAgent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description PrivacyAgent(Path contextDir)PrivacyAgent(Path contextDir, BrowserType browserType)PrivacyAgent(Path contextDir, Fingerprint fingerprint)
-
Method Summary
Modifier and Type Method Description final PrivacyAgentIdgetId()final StringgetIdent()final StringgetDisplay()final BrowserTypegetBrowserType()final BooleanisSystemDefault()final BooleanisDefault()final BooleanisPrototype()final BooleanisGroup()final BooleanisTemporary()final BooleanisPermanent()final PathgetContextDir()final FingerprintgetFingerprint()final UnitsetFingerprint(Fingerprint fingerprint)Booleanequals(Object other)The PrivacyAgent equality. IntegerhashCode()IntegercompareTo(PrivacyAgent other)-
-
Method Detail
-
getId
final PrivacyAgentId getId()
-
getDisplay
final String getDisplay()
-
getBrowserType
final BrowserType getBrowserType()
-
isSystemDefault
final Boolean isSystemDefault()
-
isPrototype
final Boolean isPrototype()
-
isTemporary
final Boolean isTemporary()
-
isPermanent
final Boolean isPermanent()
-
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)
-
-
-
-