jwt

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signaturer

type Signaturer struct {
	// contains filtered or unexported fields
}

func HS256

func HS256(key string) *Signaturer

HS256 creates a signing methods by using the HMAC-SHA256.

func HS384

func HS384(key string) *Signaturer

HS384 creates a signing methods by using the HMAC-SHA384.

func HS512

func HS512(key string) *Signaturer

HS512 creates a signing methods by using the HMAC-SHA512.

func (*Signaturer) Audience

func (p *Signaturer) Audience(aud ...string) *Signaturer

func (*Signaturer) Compose

func (p *Signaturer) Compose(rt http.RoundTripper) http.RoundTripper

func (*Signaturer) Expiration

func (p *Signaturer) Expiration(exp time.Time) *Signaturer

func (*Signaturer) IssuedAt

func (p *Signaturer) IssuedAt(iat time.Time) *Signaturer

func (*Signaturer) NotBefore

func (p *Signaturer) NotBefore(nbf time.Time) *Signaturer

func (*Signaturer) Set

func (p *Signaturer) Set(k string, v any) *Signaturer

Jump to

Keyboard shortcuts

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