jwtsigner

package
v0.24.442 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentitySigner

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

func New

func New(issuer string, sm jwt.SigningMethod, key interface{}, keyId string) *IdentitySigner

func (*IdentitySigner) Generate

func (j *IdentitySigner) Generate(subj, jti string, claims jwt.Claims) (string, error)

type Signer

type Signer interface {
	Generate(string, string, jwt.Claims) (string, error)
}

Jump to

Keyboard shortcuts

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