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 New ¶
func New(ctx context.Context, config *config.APIServerConfig, db *database.Database, cacher vcache.Cacher, kms keys.KeyManager, h *render.Renderer) (*Controller, error)
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[*SignerInfo], db *database.Database, kms keys.KeyManager, ) (*SignerInfo, error)
GetSignerForRealm gets the certificate signer info for the given realm.
Click to show internal directories.
Click to hide internal directories.