cert

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) *certificateAuthenticator

func NewRangerPlugin

func NewRangerPlugin(cfg ClientConfig) (ranger.ClientPlugin, error)

Types

type CertJWTVerifier

type CertJWTVerifier struct {
	Ks       KeyStore
	Expected jwt.Expected
}

func (*CertJWTVerifier) Validate

func (v *CertJWTVerifier) Validate(rawToken string, dest *user.Claims) error

type ClientConfig

type ClientConfig struct {
	Subject               string
	Issuer                string
	Kid                   string
	PrivateKey            *ecdsa.PrivateKey
	DisableContentHashing bool
	NoExpiration          bool
}

type Config

type Config struct {
	KeyStore KeyStore
	Expected jwt.Expected
}

type KeyStore

type KeyStore interface {
	Get(keyid string) (*x509.Certificate, error)
}

Jump to

Keyboard shortcuts

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