certapi

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package certapi implements the token + TEK verification API.

Index

Constants

View Source
const (
	HMACLength = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (*Controller) HandleCertificate

func (c *Controller) HandleCertificate() http.Handler

type SignerInfo added in v0.5.0

type SignerInfo struct {
	Signer   crypto.Signer
	KeyID    string
	Issuer   string
	Audience string
	Duration time.Duration
}

func GetSignerForRealm added in v0.21.0

func GetSignerForRealm(ctx context.Context, realmID uint,
	cfg config.CertificateSigningConfig, cache *cache.Cache, db *database.Database, kms keys.KeyManager) (*SignerInfo, error)

GetSignerForRealm gets the certificate signer info for the given realm.

Jump to

Keyboard shortcuts

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