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
}
type Option ¶
type Option func(*Config)
func WithContentEncryption ¶
func WithContentEncryption(contentEncryption jwe.ContentEncryption) Option
func WithContentType ¶
func WithHeaderName ¶
func WithKeyAlgorithm ¶
func WithKeyAlgorithm(keyAlgorithm jwe.KeyAlgorithm) Option
Click to show internal directories.
Click to hide internal directories.