Class BaseSiteKeyExtractor

java.lang.Object
org.adblockplus.libadblockplus.android.webview.BaseSiteKeyExtractor
All Implemented Interfaces:
SiteKeyExtractor
Direct Known Subclasses:
HttpHeaderSiteKeyExtractor

public abstract class BaseSiteKeyExtractor
extends java.lang.Object
implements SiteKeyExtractor
  • Field Details

    • RESOURCE_HOLD_MAX_TIME_MS

      public static final int RESOURCE_HOLD_MAX_TIME_MS
      See Also:
      Constant Field Values
    • webViewWeakReference

      protected final java.lang.ref.WeakReference<AdblockWebView> webViewWeakReference
  • Constructor Details

    • BaseSiteKeyExtractor

      protected BaseSiteKeyExtractor​(AdblockWebView webView)
  • Method Details

    • getSiteKeysConfiguration

      protected org.adblockplus.libadblockplus.sitekey.SiteKeysConfiguration getSiteKeysConfiguration()
      Returns the site key config that can be used to retrieve SiteKeyVerifier and verify the site key
      Returns:
      an instance of SiteKeysConfiguration
    • setSiteKeysConfiguration

      public void setSiteKeysConfiguration​(org.adblockplus.libadblockplus.sitekey.SiteKeysConfiguration siteKeysConfiguration)
      Description copied from interface: SiteKeyExtractor
      This method is called by the AdblockWebView during AdblockWebView.setSiteKeysConfiguration(SiteKeysConfiguration) You can later use siteKeysConfiguration in order to verify the sitekey
      Specified by:
      setSiteKeysConfiguration in interface SiteKeyExtractor
      Parameters:
      siteKeysConfiguration - the configuration to set
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled​(boolean enabled)
      Specified by:
      setEnabled in interface SiteKeyExtractor