fake

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

func New

func New() *Fake

func (*Fake) Generate

func (f *Fake) Generate(ctx context.Context, req *jwt.Request) (string, error)

func (*Fake) JWKS

func (f *Fake) JWKS() jwk.Set

func (*Fake) JWTSignatureAlgorithm

func (f *Fake) JWTSignatureAlgorithm() jwa.KeyAlgorithm

func (*Fake) SignIdentity

func (f *Fake) SignIdentity(ctx context.Context, req *ca.SignRequest) ([]*x509.Certificate, error)

func (*Fake) TrustAnchors

func (f *Fake) TrustAnchors() []byte

func (*Fake) WithGenerateJWT

func (f *Fake) WithGenerateJWT(fn func(context.Context, *jwt.Request) (string, error)) *Fake

func (*Fake) WithJWKS

func (f *Fake) WithJWKS(fn func() jwk.Set) *Fake

func (*Fake) WithJWTSignatureAlgorithm

func (f *Fake) WithJWTSignatureAlgorithm(fn func() jwa.KeyAlgorithm) *Fake

func (*Fake) WithSignIdentity

func (f *Fake) WithSignIdentity(fn func(context.Context, *ca.SignRequest) ([]*x509.Certificate, error)) *Fake

func (*Fake) WithTrustAnchors

func (f *Fake) WithTrustAnchors(fn func() []byte) *Fake

Jump to

Keyboard shortcuts

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