validation

package
v0.0.0-...-19a598b Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrivateKeyFromPEMBlock

func ParsePrivateKeyFromPEMBlock(privateKeyPEM string) (*rsa.PrivateKey, error)

func SignRequestWithDigest

func SignRequestWithDigest(r *http.Request, url *url.URL, keyID string, privateKey *rsa.PrivateKey, body []byte) (*http.Request, error)

func Signature

func Signature(next http.Handler) http.Handler

Signature validates the "Signature" header using the public key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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