Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyParser ¶
type BodyParser struct {
PrivateKey any
KeyIdentifier string
KeyAlgorithm jwe.KeyAlgorithm
ContentEncryption jwe.ContentEncryption
}
func NewBodyParser ¶
func NewBodyParser(privateKey any, options ...body_parser_config.Option) (*BodyParser, error)
func (*BodyParser) Parse ¶
func (p *BodyParser) Parse(_ *http.Request, body []byte) ([]byte, *response_error.ResponseError)
type HeaderParser ¶
type HeaderParser struct {
KeyAlgorithm jwe.KeyAlgorithm
ContentEncryption jwe.ContentEncryption
ContentType string
// contains filtered or unexported fields
}
func NewHeaderParser ¶
func NewHeaderParser(options ...header_parser_config.Option) (*HeaderParser, error)
func (*HeaderParser) Parse ¶
func (p *HeaderParser) Parse(request *http.Request) (*jwe.Encrypter, *response_error.ResponseError)
Click to show internal directories.
Click to hide internal directories.