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 ¶
SignerVerifier is an interface that combines the signer and verifier Algorithm interfaces
type SignerVerifierAttributer ¶
SignerVerifierAttributer is an interface that combines the Attributer, signer.Algorithm, and verifier.Algorithm interfaces