Class SecurityImpl

java.lang.Object
io.webfolder.cdp.command.SecurityImpl
All Implemented Interfaces:
Security

public class SecurityImpl
extends java.lang.Object
implements Security
  • Constructor Summary

    Constructors 
    Constructor Description
    SecurityImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Disables tracking security state changes.
    void enable()
    Enables tracking security state changes.
    void handleCertificateError​(java.lang.Integer eventId, CertificateErrorAction action)
    Handles a certificate error that fired a certificateError event.
    void setIgnoreCertificateErrors​(java.lang.Boolean ignore)
    Enable/disable whether all certificate errors should be ignored.
    void setOverrideCertificateErrors​(java.lang.Boolean override)
    Enable/disable overriding certificate errors.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • disable

      public void disable()
      Description copied from interface: Security
      Disables tracking security state changes.
      Specified by:
      disable in interface Security
    • enable

      public void enable()
      Description copied from interface: Security
      Enables tracking security state changes.
      Specified by:
      enable in interface Security
    • setIgnoreCertificateErrors

      public void setIgnoreCertificateErrors​(java.lang.Boolean ignore)
      Description copied from interface: Security
      Enable/disable whether all certificate errors should be ignored.
      Specified by:
      setIgnoreCertificateErrors in interface Security
      Parameters:
      ignore - If true, all certificate errors will be ignored.
    • handleCertificateError

      public void handleCertificateError​(java.lang.Integer eventId, CertificateErrorAction action)
      Description copied from interface: Security
      Handles a certificate error that fired a certificateError event.
      Specified by:
      handleCertificateError in interface Security
      Parameters:
      eventId - The ID of the event.
      action - The action to take on the certificate error.
    • setOverrideCertificateErrors

      public void setOverrideCertificateErrors​(java.lang.Boolean override)
      Description copied from interface: Security
      Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with `handleCertificateError` commands.
      Specified by:
      setOverrideCertificateErrors in interface Security
      Parameters:
      override - If true, certificate errors will be overridden.