truststore

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryTrustStore

type InMemoryTrustStore struct {
	Keys map[string]crypto.PublicKey
}

InMemoryTrustStore is a in memory storage for public keys

func (*InMemoryTrustStore) GetPublicKey

func (ts *InMemoryTrustStore) GetPublicKey(keyID string) crypto.PublicKey

GetPublicKey returns the public key with this key ID

type TrustStore

type TrustStore interface {
	GetPublicKey(keyID string) crypto.PublicKey
}

TrustStore is a generic interface to retrieve a public key

func New

func New(filename string) (store TrustStore, err error)

New creates new Trust Store from URI

Jump to

Keyboard shortcuts

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