jwtsigner

package
v1.1.4-pre Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

type SignerImpl added in v0.34.0

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

func New

func New(sm jwt.SigningMethod, key crypto.PrivateKey, keyId string) *SignerImpl

func (*SignerImpl) Generate added in v0.34.0

func (j *SignerImpl) Generate(claims jwt.Claims) (string, error)

func (*SignerImpl) KeyId added in v0.34.0

func (j *SignerImpl) KeyId() string

func (*SignerImpl) SigningMethod added in v0.34.0

func (j *SignerImpl) SigningMethod() jwt.SigningMethod

Jump to

Keyboard shortcuts

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