Help us shape the future of Go! Take the 2026 Go Developer Survey

method

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const CustomAlgHeader = "customalg"

CustomAlgHeader is the `alg` JSON attribute's value for the example custom jwt.SigningMethod.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyCustom

type EmptyCustom struct{}

EmptyCustom implements the jwt.SigningMethod interface. It will not sign or verify anything.

func (EmptyCustom) Alg

func (e EmptyCustom) Alg() string

Alg helps implement the jwt.SigningMethod. It returns the `alg` JSON attribute for JWTs signed with this method.

func (EmptyCustom) Sign

func (e EmptyCustom) Sign(_ string, _ interface{}) (string, error)

Sign helps implement the jwt.SigningMethod interface. It does not sign anything.

func (EmptyCustom) Verify

func (e EmptyCustom) Verify(_, _ string, _ interface{}) error

Verify helps implement the jwt.SigningMethod interface. It does not verify.

Jump to

Keyboard shortcuts

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