header_parser_config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHeaderName        = "X-Client-Public-Jwk"
	DefaultKeyAlgorithm      = jwe.KeyAlgorithmEcdhEs
	DefaultContentEncryption = jwe.ContentEncryptionA256Gcm
	DefaultContentType       = "application/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HeaderName        string
	KeyAlgorithm      jwe.KeyAlgorithm
	ContentEncryption jwe.ContentEncryption
	ContentType       string
}

func New

func New(options ...Option) *Config

type Option

type Option func(*Config)

func WithContentEncryption

func WithContentEncryption(contentEncryption jwe.ContentEncryption) Option

func WithContentType

func WithContentType(contentType string) Option

func WithHeaderName

func WithHeaderName(headerName string) Option

func WithKeyAlgorithm

func WithKeyAlgorithm(keyAlgorithm jwe.KeyAlgorithm) Option

Jump to

Keyboard shortcuts

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