signatory

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFakeAdsCertRecordForTesting

func GenerateFakeAdsCertRecordForTesting(adscertCallsign string) string

func GenerateFakeKeyPairFromDomainNameForTesting

func GenerateFakeKeyPairFromDomainNameForTesting(adscertCallsign string) ([32]byte, [32]byte)

func GenerateFakePrivateKeysForTesting

func GenerateFakePrivateKeysForTesting(adscertCallsign string) []string

func GetSignatures

func GetSignatures(response *api.AuthenticatedConnectionSignatureResponse) []string

func SetRequestInfo

func SetRequestInfo(requestInfo *api.RequestInfo, url string, body []byte) error

func SetRequestSignatures added in v0.16.0

func SetRequestSignatures(requestInfo *api.RequestInfo, signatures []string)

Types

type AuthenticatedConnectionsSignatory

type AuthenticatedConnectionsSignatory interface {
	SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
	VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
}

func NewAuthenticatedConnectionsSignatoryClient added in v0.7.0

func NewAuthenticatedConnectionsSignatoryClient(conn *grpc.ClientConn, options *AuthenticatedConnectionsSignatoryClientOptions) AuthenticatedConnectionsSignatory

type AuthenticatedConnectionsSignatoryClient added in v0.7.0

type AuthenticatedConnectionsSignatoryClient struct {
	// contains filtered or unexported fields
}

func (*AuthenticatedConnectionsSignatoryClient) SignAuthenticatedConnection added in v0.7.0

func (*AuthenticatedConnectionsSignatoryClient) VerifyAuthenticatedConnection added in v0.7.0

type AuthenticatedConnectionsSignatoryClientOptions added in v0.7.0

type AuthenticatedConnectionsSignatoryClientOptions struct {
	Timeout time.Duration
}

type LocalAuthenticatedConnectionsSignatory added in v0.22.0

type LocalAuthenticatedConnectionsSignatory struct {
	// contains filtered or unexported fields
}

func NewLocalAuthenticatedConnectionsSignatory

func NewLocalAuthenticatedConnectionsSignatory(
	originCallsign string,
	reader io.Reader,
	clock clock.Clock,
	dnsResolver discovery.DNSResolver,
	domainStore discovery.DomainStore,
	domainCheckInterval time.Duration,
	domainRenewalInterval time.Duration,
	base64PrivateKeys []string) *LocalAuthenticatedConnectionsSignatory

func (*LocalAuthenticatedConnectionsSignatory) IsHealthy added in v0.22.0

func (*LocalAuthenticatedConnectionsSignatory) SignAuthenticatedConnection added in v0.22.0

func (*LocalAuthenticatedConnectionsSignatory) VerifyAuthenticatedConnection added in v0.22.0

Jump to

Keyboard shortcuts

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