security

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// There is a certificate error. If overriding certificate errors is enabled, then it should be
	// handled with the `handleCertificateError` command. Note: this event does not fire if the
	// certificate error has been allowed internally. Only one client per target should override
	// certificate errors at the same time.
	CertificateErrorEvent = "Security.certificateError"

	// The security state of the page changed.
	SecurityStateChangedEvent = "Security.securityStateChanged"
)
View Source
const (

	// Disables tracking security state changes.
	Disable = "Security.disable"

	// Enables tracking security state changes.
	Enable = "Security.enable"

	// Enable/disable whether all certificate errors should be ignored.
	SetIgnoreCertificateErrors = "Security.setIgnoreCertificateErrors"

	// Handles a certificate error that fired a certificateError event.
	HandleCertificateError = "Security.handleCertificateError"

	// 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.
	SetOverrideCertificateErrors = "Security.setOverrideCertificateErrors"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateErrorAction

type CertificateErrorAction string

The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.

type CertificateErrorParams

type CertificateErrorParams struct {

	// The ID of the event.
	EventId int `json:"eventId"`

	// The type of the error.
	ErrorType string `json:"errorType"`

	// The url that was requested.
	RequestURL string `json:"requestURL"`
}

There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the `handleCertificateError` command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.

type CertificateId

type CertificateId int

An internal certificate ID value.

type DisableParams

type DisableParams struct {
}

Disable parameters

type DisableReturns

type DisableReturns struct {
}

Disable returns

type EnableParams

type EnableParams struct {
}

Enable parameters

type EnableReturns

type EnableReturns struct {
}

Enable returns

type HandleCertificateErrorParams

type HandleCertificateErrorParams struct {

	// The ID of the event.
	EventId int `json:"eventId"`

	// The action to take on the certificate error.
	Action CertificateErrorAction `json:"action"`
}

HandleCertificateError parameters

type HandleCertificateErrorReturns

type HandleCertificateErrorReturns struct {
}

HandleCertificateError returns

type InsecureContentStatus

type InsecureContentStatus struct {
	RanMixedContent bool `json:"ranMixedContent"`

	DisplayedMixedContent bool `json:"displayedMixedContent"`

	ContainedMixedForm bool `json:"containedMixedForm"`

	RanContentWithCertErrors bool `json:"ranContentWithCertErrors"`

	DisplayedContentWithCertErrors bool `json:"displayedContentWithCertErrors"`

	RanInsecureContentStyle SecurityState `json:"ranInsecureContentStyle"`

	DisplayedInsecureContentStyle SecurityState `json:"displayedInsecureContentStyle"`
}

Information about insecure content on the page.

type MixedContentType

type MixedContentType string

A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories

type SecurityState

type SecurityState string

The security level of a page or resource.

type SecurityStateChangedParams

type SecurityStateChangedParams struct {

	// Security state.
	SecurityState SecurityState `json:"securityState"`

	// True if the page was loaded over cryptographic transport such as HTTPS.
	SchemeIsCryptographic bool `json:"schemeIsCryptographic"`

	// List of explanations for the security state. If the overall security state is `insecure` or
	// `warning`, at least one corresponding explanation should be included.
	Explanations []SecurityStateExplanation `json:"explanations"`

	// Information about insecure content on the page.
	InsecureContentStatus InsecureContentStatus `json:"insecureContentStatus"`

	// Overrides user-visible description of the state.
	Summary string `json:"summary"`
}

The security state of the page changed.

type SecurityStateExplanation

type SecurityStateExplanation struct {
	SecurityState SecurityState `json:"securityState"`

	Title string `json:"title"`

	Summary string `json:"summary"`

	Description string `json:"description"`

	MixedContentType MixedContentType `json:"mixedContentType"`

	Certificate []string `json:"certificate"`

	Recommendations []string `json:"recommendations"`
}

An explanation of an factor contributing to the security state.

type SetIgnoreCertificateErrorsParams

type SetIgnoreCertificateErrorsParams struct {

	// If true, all certificate errors will be ignored.
	Ignore bool `json:"ignore"`
}

SetIgnoreCertificateErrors parameters

type SetIgnoreCertificateErrorsReturns

type SetIgnoreCertificateErrorsReturns struct {
}

SetIgnoreCertificateErrors returns

type SetOverrideCertificateErrorsParams

type SetOverrideCertificateErrorsParams struct {

	// If true, certificate errors will be overridden.
	Override bool `json:"override"`
}

SetOverrideCertificateErrors parameters

type SetOverrideCertificateErrorsReturns

type SetOverrideCertificateErrorsReturns struct {
}

SetOverrideCertificateErrors returns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL