adscert

package
v0.0.0-...-8eb2530 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatedConnectionSignature

type AuthenticatedConnectionSignature struct {
	SignatureMessages []string
}

AuthenticatedConnectionSignature represents a signature conforming to the ads.cert Authenticated Connections specification. Multiple signatures may be present for integrations that utilize a third-party verification service or similar multiparty integration.

type AuthenticatedConnectionSignatureParams

type AuthenticatedConnectionSignatureParams struct {
	DestinationURL string
	RequestBody    []byte

	// When verifying an existing set of signatures, also include these values.
	SignatureMessageToVerify []string
}

AuthenticatedConnectionSignatureParams captures parameters for the SignAuthenticatedConnection operation.

type AuthenticatedConnectionVerification

type AuthenticatedConnectionVerification struct {
	// TODO: something more informative.
	BodyValid bool
	URLValid  bool
}

AuthenticatedConnectionVerification captures the results of verifying a signature against the ads.cert Authenticated Connections specification requirements.

type AuthenticatedConnectionsSigner

type AuthenticatedConnectionsSigner interface {
	SignAuthenticatedConnection(params AuthenticatedConnectionSignatureParams) (AuthenticatedConnectionSignature, error)

	VerifyAuthenticatedConnection(params AuthenticatedConnectionSignatureParams) (AuthenticatedConnectionVerification, error)
}

AuthenticatedConnectionsSigner generates a signature intended for the specified party over the specified message.

func NewAuthenticatedConnectionsSigner

func NewAuthenticatedConnectionsSigner(signatory adscertcrypto.AuthenticatedConnectionsSignatory) AuthenticatedConnectionsSigner

NewAuthenticatedConnectionsSigner creates a new signer instance for creating ads.cert Authenticated Connections signatures.

Jump to

Keyboard shortcuts

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