cdproto: github.com/chromedp/cdproto/security Index | Files

package security

import "github.com/chromedp/cdproto/security"

Package security provides the Chrome DevTools Protocol commands, types, and events for the Security domain.

Security.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go security.go types.go

Constants

const (
    CommandDisable                    = "Security.disable"
    CommandEnable                     = "Security.enable"
    CommandSetIgnoreCertificateErrors = "Security.setIgnoreCertificateErrors"
)

Command names.

type CertificateErrorAction Uses

type CertificateErrorAction string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-CertificateErrorAction

const (
    CertificateErrorActionContinue CertificateErrorAction = "continue"
    CertificateErrorActionCancel   CertificateErrorAction = "cancel"
)

CertificateErrorAction values.

func (CertificateErrorAction) MarshalEasyJSON Uses

func (t CertificateErrorAction) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CertificateErrorAction) MarshalJSON Uses

func (t CertificateErrorAction) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CertificateErrorAction) String Uses

func (t CertificateErrorAction) String() string

String returns the CertificateErrorAction as string value.

func (*CertificateErrorAction) UnmarshalEasyJSON Uses

func (t *CertificateErrorAction) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CertificateErrorAction) UnmarshalJSON Uses

func (t *CertificateErrorAction) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type CertificateID Uses

type CertificateID int64

CertificateID an internal certificate ID value.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-CertificateId

func (CertificateID) Int64 Uses

func (t CertificateID) Int64() int64

Int64 returns the CertificateID as int64 value.

type CertificateSecurityState Uses

type CertificateSecurityState struct {
    Protocol                    string              `json:"protocol"`                          // Protocol name (e.g. "TLS 1.2" or "QUIC").
    KeyExchange                 string              `json:"keyExchange"`                       // Key Exchange used by the connection, or the empty string if not applicable.
    KeyExchangeGroup            string              `json:"keyExchangeGroup,omitempty"`        // (EC)DH group used by the connection, if applicable.
    Cipher                      string              `json:"cipher"`                            // Cipher name.
    Mac                         string              `json:"mac,omitempty"`                     // TLS MAC. Note that AEAD ciphers do not have separate MACs.
    Certificate                 []string            `json:"certificate"`                       // Page certificate.
    SubjectName                 string              `json:"subjectName"`                       // Certificate subject name.
    Issuer                      string              `json:"issuer"`                            // Name of the issuing CA.
    ValidFrom                   *cdp.TimeSinceEpoch `json:"validFrom"`                         // Certificate valid from date.
    ValidTo                     *cdp.TimeSinceEpoch `json:"validTo"`                           // Certificate valid to (expiration) date
    CertificateNetworkError     string              `json:"certificateNetworkError,omitempty"` // The highest priority network error code, if the certificate has an error.
    CertificateHasWeakSignature bool                `json:"certificateHasWeakSignature"`       // True if the certificate uses a weak signature aglorithm.
    CertificateHasSha1signature bool                `json:"certificateHasSha1Signature"`       // True if the certificate has a SHA1 signature in the chain.
    ModernSSL                   bool                `json:"modernSSL"`                         // True if modern SSL
    ObsoleteSslProtocol         bool                `json:"obsoleteSslProtocol"`               // True if the connection is using an obsolete SSL protocol.
    ObsoleteSslKeyExchange      bool                `json:"obsoleteSslKeyExchange"`            // True if the connection is using an obsolete SSL key exchange.
    ObsoleteSslCipher           bool                `json:"obsoleteSslCipher"`                 // True if the connection is using an obsolete SSL cipher.
    ObsoleteSslSignature        bool                `json:"obsoleteSslSignature"`              // True if the connection is using an obsolete SSL signature.
}

CertificateSecurityState details about the security state of the page certificate.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-CertificateSecurityState

func (CertificateSecurityState) MarshalEasyJSON Uses

func (v CertificateSecurityState) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CertificateSecurityState) MarshalJSON Uses

func (v CertificateSecurityState) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CertificateSecurityState) UnmarshalEasyJSON Uses

func (v *CertificateSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CertificateSecurityState) UnmarshalJSON Uses

func (v *CertificateSecurityState) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables tracking security state changes.

func Disable Uses

func Disable() *DisableParams

Disable disables tracking security state changes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Security.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables tracking security state changes.

func Enable Uses

func Enable() *EnableParams

Enable enables tracking security state changes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Security.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventSecurityStateChanged Uses

type EventSecurityStateChanged struct {
    SecurityState State               `json:"securityState"`     // Security state.
    Explanations  []*StateExplanation `json:"explanations"`      // List of explanations for the security state. If the overall security state is insecure or warning, at least one corresponding explanation should be included.
    Summary       string              `json:"summary,omitempty"` // Overrides user-visible description of the state.
}

EventSecurityStateChanged the security state of the page changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#event-securityStateChanged

func (EventSecurityStateChanged) MarshalEasyJSON Uses

func (v EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventSecurityStateChanged) MarshalJSON Uses

func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventSecurityStateChanged) UnmarshalEasyJSON Uses

func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventSecurityStateChanged) UnmarshalJSON Uses

func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventVisibleSecurityStateChanged Uses

type EventVisibleSecurityStateChanged struct {
    VisibleSecurityState *VisibleSecurityState `json:"visibleSecurityState"` // Security state information about the page.
}

EventVisibleSecurityStateChanged the security state of the page changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#event-visibleSecurityStateChanged

func (EventVisibleSecurityStateChanged) MarshalEasyJSON Uses

func (v EventVisibleSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventVisibleSecurityStateChanged) MarshalJSON Uses

func (v EventVisibleSecurityStateChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventVisibleSecurityStateChanged) UnmarshalEasyJSON Uses

func (v *EventVisibleSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventVisibleSecurityStateChanged) UnmarshalJSON Uses

func (v *EventVisibleSecurityStateChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MixedContentType Uses

type MixedContentType string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-MixedContentType

const (
    MixedContentTypeBlockable           MixedContentType = "blockable"
    MixedContentTypeOptionallyBlockable MixedContentType = "optionally-blockable"
    MixedContentTypeNone                MixedContentType = "none"
)

MixedContentType values.

func (MixedContentType) MarshalEasyJSON Uses

func (t MixedContentType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MixedContentType) MarshalJSON Uses

func (t MixedContentType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (MixedContentType) String Uses

func (t MixedContentType) String() string

String returns the MixedContentType as string value.

func (*MixedContentType) UnmarshalEasyJSON Uses

func (t *MixedContentType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MixedContentType) UnmarshalJSON Uses

func (t *MixedContentType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SafetyTipInfo Uses

type SafetyTipInfo struct {
    SafetyTipStatus SafetyTipStatus `json:"safetyTipStatus"`   // Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.
    SafeURL         string          `json:"safeUrl,omitempty"` // The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches.
}

SafetyTipInfo [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-SafetyTipInfo

func (SafetyTipInfo) MarshalEasyJSON Uses

func (v SafetyTipInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SafetyTipInfo) MarshalJSON Uses

func (v SafetyTipInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SafetyTipInfo) UnmarshalEasyJSON Uses

func (v *SafetyTipInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SafetyTipInfo) UnmarshalJSON Uses

func (v *SafetyTipInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SafetyTipStatus Uses

type SafetyTipStatus string

SafetyTipStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-SafetyTipStatus

const (
    SafetyTipStatusBadReputation SafetyTipStatus = "badReputation"
    SafetyTipStatusLookalike     SafetyTipStatus = "lookalike"
)

SafetyTipStatus values.

func (SafetyTipStatus) MarshalEasyJSON Uses

func (t SafetyTipStatus) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SafetyTipStatus) MarshalJSON Uses

func (t SafetyTipStatus) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SafetyTipStatus) String Uses

func (t SafetyTipStatus) String() string

String returns the SafetyTipStatus as string value.

func (*SafetyTipStatus) UnmarshalEasyJSON Uses

func (t *SafetyTipStatus) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SafetyTipStatus) UnmarshalJSON Uses

func (t *SafetyTipStatus) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetIgnoreCertificateErrorsParams Uses

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

SetIgnoreCertificateErrorsParams enable/disable whether all certificate errors should be ignored.

func SetIgnoreCertificateErrors Uses

func SetIgnoreCertificateErrors(ignore bool) *SetIgnoreCertificateErrorsParams

SetIgnoreCertificateErrors enable/disable whether all certificate errors should be ignored.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-setIgnoreCertificateErrors

parameters:

ignore - If true, all certificate errors will be ignored.

func (*SetIgnoreCertificateErrorsParams) Do Uses

func (p *SetIgnoreCertificateErrorsParams) Do(ctx context.Context) (err error)

Do executes Security.setIgnoreCertificateErrors against the provided context.

func (SetIgnoreCertificateErrorsParams) MarshalEasyJSON Uses

func (v SetIgnoreCertificateErrorsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetIgnoreCertificateErrorsParams) MarshalJSON Uses

func (v SetIgnoreCertificateErrorsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetIgnoreCertificateErrorsParams) UnmarshalEasyJSON Uses

func (v *SetIgnoreCertificateErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetIgnoreCertificateErrorsParams) UnmarshalJSON Uses

func (v *SetIgnoreCertificateErrorsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type State Uses

type State string

State the security level of a page or resource.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-SecurityState

const (
    StateUnknown        State = "unknown"
    StateNeutral        State = "neutral"
    StateInsecure       State = "insecure"
    StateSecure         State = "secure"
    StateInfo           State = "info"
    StateInsecureBroken State = "insecure-broken"
)

State values.

func (State) MarshalEasyJSON Uses

func (t State) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (State) MarshalJSON Uses

func (t State) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (State) String Uses

func (t State) String() string

String returns the State as string value.

func (*State) UnmarshalEasyJSON Uses

func (t *State) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*State) UnmarshalJSON Uses

func (t *State) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type StateExplanation Uses

type StateExplanation struct {
    SecurityState    State            `json:"securityState"`             // Security state representing the severity of the factor being explained.
    Title            string           `json:"title"`                     // Title describing the type of factor.
    Summary          string           `json:"summary"`                   // Short phrase describing the type of factor.
    Description      string           `json:"description"`               // Full text explanation of the factor.
    MixedContentType MixedContentType `json:"mixedContentType"`          // The type of mixed content described by the explanation.
    Certificate      []string         `json:"certificate"`               // Page certificate.
    Recommendations  []string         `json:"recommendations,omitempty"` // Recommendations to fix any issues.
}

StateExplanation an explanation of an factor contributing to the security state.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-SecurityStateExplanation

func (StateExplanation) MarshalEasyJSON Uses

func (v StateExplanation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StateExplanation) MarshalJSON Uses

func (v StateExplanation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StateExplanation) UnmarshalEasyJSON Uses

func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StateExplanation) UnmarshalJSON Uses

func (v *StateExplanation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type VisibleSecurityState Uses

type VisibleSecurityState struct {
    SecurityState            State                     `json:"securityState"`                      // The security level of the page.
    CertificateSecurityState *CertificateSecurityState `json:"certificateSecurityState,omitempty"` // Security state details about the page certificate.
    SafetyTipInfo            *SafetyTipInfo            `json:"safetyTipInfo,omitempty"`            // The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.
    SecurityStateIssueIds    []string                  `json:"securityStateIssueIds"`              // Array of security state issues ids.
}

VisibleSecurityState security state information about the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-VisibleSecurityState

func (VisibleSecurityState) MarshalEasyJSON Uses

func (v VisibleSecurityState) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VisibleSecurityState) MarshalJSON Uses

func (v VisibleSecurityState) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VisibleSecurityState) UnmarshalEasyJSON Uses

func (v *VisibleSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VisibleSecurityState) UnmarshalJSON Uses

func (v *VisibleSecurityState) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package security imports 7 packages (graph) and is imported by 5 packages. Updated 2021-01-07. Refresh now. Tools for package owners.