multialgo

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

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package multialgo provides several verifier.KeyDirectory implementations that support multiple Algorithm types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultiAlgoAttributerDirectory

func NewMultiAlgoAttributerDirectory(algos map[string]AttributerAlgo) verifier.KeyDirectory

NewMultiAlgoAttributerDirectory returns a new in-memory MultiAlgoAttributerDirectory. The KeyDirectory is an in-memory implementation that can handle multiple Algorithm types. The GetKey() response supports httpsig.Attributer

func NewMultiAlgoDirectory

func NewMultiAlgoDirectory(algos map[string]verifier.Algorithm) verifier.KeyDirectory

NewMultiAlgoDirectory returns a new in-memory KeyDirectory that supports multiple Algorithm types. The GetKey() method will return the Algorithm if it is found in the map, but does not support the httpsig.Attributer interface.

Types

type AttributerAlgo

type AttributerAlgo interface {
	httpsig.Attributer
	verifier.Algorithm
}

AttributerAlgo is an interface that combines the Attributer and Algorithm

type SignerVerifier

type SignerVerifier interface {
	signer.Algorithm
	verifier.Algorithm
}

SignerVerifier is an interface that combines the signer and verifier Algorithm interfaces

type SignerVerifierAttributer

type SignerVerifierAttributer interface {
	httpsig.Attributer
	signer.Algorithm
	verifier.Algorithm
}

SignerVerifierAttributer is an interface that combines the Attributer, signer.Algorithm, and verifier.Algorithm interfaces

Jump to

Keyboard shortcuts

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